quality: Add some test cases for openflow messages

This commit is contained in:
Eishun Kondoh 2019-04-28 11:47:05 +09:00
parent 578c0d1bdc
commit f3fc896408
13 changed files with 1403 additions and 1321 deletions

View file

@ -9,8 +9,10 @@ defmodule OfpFeaturesTest do
|> File.read!()
|> Openflow.read()
assert features.version == 4
assert features.xid == 0
expect = Openflow.Features.Request.new(0)
assert features.version == expect.version
assert features.xid == expect.xid
end
test "with OFP_FEATURES_REPLY packet" do