1 2 3 4 5 6 7 8 9 10 11 12 13 14
package dhcpv4 import ( "testing" "github.com/stretchr/testify/require" ) func TestUserClassModifier(t *testing.T) { d, _ := New() userClass := WithUserClass([]byte("linuxboot")) d = userClass(d) require.Equal(t, "OptUserClass{userclass=[linuxboot]}", d.options[0].String()) }