(t *testing.T)
| 25 | ) |
| 26 | |
| 27 | func TestSetTime(t *testing.T) { |
| 28 | tx := &unix.Timex{} |
| 29 | setTime(tx, 5*time.Second, 123*time.Nanosecond) |
| 30 | require.Equal(t, int64(5*time.Second), tx.Time.Sec) |
| 31 | require.Equal(t, int64(123*time.Nanosecond), tx.Time.Usec) |
| 32 | } |
| 33 | |
| 34 | func TestSetTimeNegative(t *testing.T) { |
| 35 | tx := &unix.Timex{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…