8 func TestTrackerRegistration_Payload(t *testing.T) {
22 name: "returns expected payload bytes",
24 Port: [2]byte{0x00, 0x10},
26 PassID: []byte{0x00, 0x00, 0x00, 0x01},
35 0x00, 0x00, 0x00, 0x01,
37 0x54, 0x65, 0x73, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76,
39 0x46, 0x6f, 0x6f, 0x7a,
43 for _, tt := range tests {
44 t.Run(tt.name, func(t *testing.T) {
45 tr := &TrackerRegistration{
47 UserCount: tt.fields.UserCount,
48 PassID: tt.fields.PassID,
50 Description: tt.fields.Description,
52 if got := tr.Payload(); !reflect.DeepEqual(got, tt.want) {
53 t.Errorf("Payload() = %v, want %v", got, tt.want)