quality: Add test cases for openflow actions
This commit is contained in:
parent
84a827eea1
commit
d2a6488f79
9 changed files with 112 additions and 22 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue