MCPcopy
hub / github.com/spf13/cast / assertTimeEqual

Function assertTimeEqual

time_test.go:252–257  ·  view source on GitHub ↗
(t *testing.T, expected, actual time.Time)

Source from the content-addressed store, hash-verified

250}
251
252func assertTimeEqual(t *testing.T, expected, actual time.Time) {
253 t.Helper()
254 // Compare the dates using a numeric zone as there are cases where
255 // time.Parse will assign a dummy location.
256 qt.Assert(t, actual.Format(time.RFC1123Z), qt.Equals, expected.Format(time.RFC1123Z))
257}
258
259func assertLocationEqual(t *testing.T, expected, actual *time.Location) {
260 t.Helper()

Callers 1

TestTimeWithTimezonesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…