quality: Add test cases for openflow actions

This commit is contained in:
Eishun Kondoh 2019-04-22 20:47:52 +09:00
parent 84a827eea1
commit d2a6488f79
9 changed files with 112 additions and 22 deletions

View file

@ -7,7 +7,10 @@ defmodule Openflow.Action.NxDecTtlCntIds do
alias __MODULE__
alias Openflow.Action.Experimenter
def new(ids \\ []) do
@type t :: %NxDecTtlCntIds{ids: [non_neg_integer()]}
@spec new(ids :: [non_neg_integer()]) :: t()
def new(ids) do
%NxDecTtlCntIds{ids: ids}
end