(t *testing.T)
| 359 | require.Error(t, err) |
| 360 | }) |
| 361 | } |
| 362 | |
| 363 | func TestSocketControlMessageTimestamp(t *testing.T) { |
| 364 | if timestamping != unix.SO_TIMESTAMPING_NEW { |
| 365 | t.Skip("This test supports SO_TIMESTAMPING_NEW only. No sample of SO_TIMESTAMPING") |
| 366 | } |
| 367 | |
| 368 | var b []byte |
| 369 | var toob int |
| 370 | |
| 371 | // unix.Cmsghdr used in socketControlMessageTimestamp differs depending on platform |
| 372 | switch runtime.GOARCH { |
| 373 | case "amd64": |
| 374 | b = []byte{ |
| 375 | 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, |
| 376 | 0x1, 0x0, 0x0, 0x0, 0x41, 0x0, 0x0, 0x0, |
| 377 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, |
| 378 | 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, |
nothing calls this directly
no test coverage detected
searching dependent graphs…