Skip to content

Commit 70290c4

Browse files
committed
Pathetically incomplete unit test for nfct.
1 parent e519719 commit 70290c4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

nfct-test

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env lua
2+
3+
require"nfct"
4+
5+
ct=assert(nfct.new())
6+
7+
assert(ct == nfct.set_attr_ipv4(ct, "orig-ipv4-src", "1.2.3.4"))
8+
assert("1.2.3.4" == nfct.get_attr_ipv4(ct, "orig-ipv4-src"), nfct.get_attr_ipv4(ct, "orig-ipv4-src"))
9+
assert("number" == type(nfct.get_attr_u32(ct, "orig-ipv4-src")))
10+

0 commit comments

Comments
 (0)