diff options
author | Hu Jun <hujun.work@gmail.com> | 2020-09-05 19:54:16 -0700 |
---|---|---|
committer | Hu Jun <hujun.work@gmail.com> | 2020-09-05 19:54:16 -0700 |
commit | 79aba137cf3ea8e0c1c980cad412cc034e145c0e (patch) | |
tree | 21fba9dc20c4b449a01ddf7810b2af560afc50c1 /dhcpv4/options_test.go | |
parent | 664c04d37abac5eea444ce3987333e4c041126cc (diff) |
- restore OptionGeneric.String()
- add raiValue in option_relay_agent_information.go to implement fmt.Stringer
- change test cases accordingly
Signed-off-by: Hu Jun <hujun.work@gmail.com>
Diffstat (limited to 'dhcpv4/options_test.go')
-rw-r--r-- | dhcpv4/options_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dhcpv4/options_test.go b/dhcpv4/options_test.go index 7dbc48f..fed2312 100644 --- a/dhcpv4/options_test.go +++ b/dhcpv4/options_test.go @@ -19,7 +19,7 @@ func TestParseOption(t *testing.T) { { code: OptionNameServer, value: []byte{192, 168, 1, 254}, - want: "\xc0\xa8\x01\xfe ([192 168 1 254])", + want: "[192 168 1 254]", }, { code: OptionSubnetMask, @@ -152,7 +152,7 @@ func TestOptionStringUnknown(t *testing.T) { Code: GenericOptionCode(102), // Returend option code. Value: &OptionGeneric{[]byte{byte(MessageTypeDiscover)}}, } - require.Equal(t, "unknown (102): \x01 ([1])", o.String()) + require.Equal(t, "unknown (102): [1]", o.String()) } func TestOptionsMarshal(t *testing.T) { |