(t *testing.T)
| 29 | ) |
| 30 | |
| 31 | func Test_byteToTime(t *testing.T) { |
| 32 | timeb := []byte{145, 131, 229, 97, 0, 0, 0, 0, 203, 178, 14, 0, 0, 0, 0, 0} |
| 33 | res, err := byteToTime(timeb) |
| 34 | require.Nil(t, err) |
| 35 | |
| 36 | tv := &unix.Timeval{Sec: 1642431377, Usec: 963275} |
| 37 | require.Equal(t, time.Unix(tv.Unix()).UnixNano(), res.UnixNano()) |
| 38 | } |
| 39 | |
| 40 | func TestEnableSWTimestampsRx(t *testing.T) { |
| 41 | // listen to incoming udp packets |
nothing calls this directly
no test coverage detected
searching dependent graphs…