(t *testing.T)
| 25 | } |
| 26 | |
| 27 | func TestDuration(t *testing.T) { |
| 28 | for i, testCase := range durationMarshalTests { |
| 29 | t.Run(strconv.Itoa(i), func(t *testing.T) { |
| 30 | actual, err := Duration(testCase.in).MarshalText() |
| 31 | assert.Check(t, err) |
| 32 | assert.Check(t, is.DeepEqual(testCase.expected, actual)) |
| 33 | }) |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | var durationUnmarshalTests = []struct { |
| 38 | in []byte |
nothing calls this directly
no test coverage detected