(t *testing.T)
| 142 | } |
| 143 | |
| 144 | func TestTimeString(t *testing.T) { |
| 145 | for _, test := range []struct { |
| 146 | in time.Time |
| 147 | want string |
| 148 | }{ |
| 149 | {fstest.Time("1970-01-01T00:00:00.000000000Z"), "0"}, |
| 150 | {fstest.Time("2001-02-03T04:05:10.123123123Z"), "981173110123"}, |
| 151 | {fstest.Time("2001-02-03T05:05:10.123123123+01:00"), "981173110123"}, |
| 152 | } { |
| 153 | got := timeString(test.in) |
| 154 | if test.want != got { |
| 155 | t.Logf("%v: want %v got %v", test.in, test.want, got) |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | } |
| 160 | |
| 161 | func TestParseTimeString(t *testing.T) { |
| 162 | for _, test := range []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…