summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/option_clientid_test.go
diff options
context:
space:
mode:
authorSean Karlage <skarlage@fb.com>2018-07-29 17:54:30 -0700
committerSean Karlage <skarlage@fb.com>2018-07-30 22:17:49 -0700
commit7319b8f8a1a601b5e69c5bcaa33914c0f85b92e6 (patch)
tree945d12ed3d8a11ebc55dd2f8d6ee1304ecd2b20f /dhcpv6/option_clientid_test.go
parentc6894ea160d82b4a326ebab94faaebd090192a7b (diff)
DHCPv6: Rename Option constants to CamelCase
To appease linters
Diffstat (limited to 'dhcpv6/option_clientid_test.go')
-rw-r--r--dhcpv6/option_clientid_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dhcpv6/option_clientid_test.go b/dhcpv6/option_clientid_test.go
index dcaffca..77839f3 100644
--- a/dhcpv6/option_clientid_test.go
+++ b/dhcpv6/option_clientid_test.go
@@ -30,7 +30,7 @@ func TestOptClientIdToBytes(t *testing.T) {
},
}
expected := []byte{
- 0, 1, // OPTION_CLIENTID
+ 0, 1, // OptionClientID
0, 10, // length
0, 3, // DUID_LL
0, 1, // hwtype ethernet
@@ -46,7 +46,7 @@ func TestOptClientIdDecodeEncode(t *testing.T) {
5, 4, 3, 2, 1, 0, // hw addr
}
expected := append([]byte{
- 0, 1, // OPTION_CLIENTID
+ 0, 1, // OptionClientID
0, 10, // length
}, data...)
opt, err := ParseOptClientId(data)
@@ -63,5 +63,5 @@ func TestOptionClientId(t *testing.T) {
},
}
require.Equal(t, opt.Length(), 10)
- require.Equal(t, opt.Code(), OPTION_CLIENTID)
+ require.Equal(t, opt.Code(), OptionClientID)
}