(b *testing.B)
| 239 | } |
| 240 | |
| 241 | func BenchmarkCommonTimeLayouts(b *testing.B) { |
| 242 | for i := 0; i < b.N; i++ { |
| 243 | for _, commonLayout := range []string{"2019-04-29", "2017-05-30T00:00:00Z"} { |
| 244 | _, err := cast.StringToDateInDefaultLocation(commonLayout, time.UTC) |
| 245 | if err != nil { |
| 246 | b.Fatal(err) |
| 247 | } |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | func assertTimeEqual(t *testing.T, expected, actual time.Time) { |
| 253 | t.Helper() |
nothing calls this directly
no test coverage detected
searching dependent graphs…