summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4/option_tftp_server_name_test.go
diff options
context:
space:
mode:
authorSean Karlage <skarlage@fb.com>2018-08-11 14:30:48 -0700
committerSean Karlage <skarlage@fb.com>2018-08-11 14:32:26 -0700
commit8ea2525c898436a2a935580de67727bbe7035c85 (patch)
tree69d35d17c238feabb07ef07a907aae5520104911 /dhcpv4/option_tftp_server_name_test.go
parent2b05c7d03724d31529886d98f738499ac06ead7e (diff)
parenta6212f1f72e94821a29894fb66656a981bd035d0 (diff)
Merge branch 'master' into dhcpv4-moar-tests
Diffstat (limited to 'dhcpv4/option_tftp_server_name_test.go')
-rw-r--r--dhcpv4/option_tftp_server_name_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/dhcpv4/option_tftp_server_name_test.go b/dhcpv4/option_tftp_server_name_test.go
index caddf95..812210f 100644
--- a/dhcpv4/option_tftp_server_name_test.go
+++ b/dhcpv4/option_tftp_server_name_test.go
@@ -58,3 +58,8 @@ func TestParseOptTFTPServerNameShortLength(t *testing.T) {
require.NoError(t, err)
require.Equal(t, []byte("linu"), opt.TFTPServerName)
}
+
+func TestOptTFTPServerNameString(t *testing.T) {
+ o := OptTFTPServerName{TFTPServerName: []byte("testy test")}
+ require.Equal(t, "TFTP Server Name -> testy test", o.String())
+}