MCPcopy
hub / github.com/apache/devlake / TimeMustParse

Function TimeMustParse

backend/helpers/utils/mapstructure_test.go:52–58  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

50}
51
52func TimeMustParse(text string) time.Time {
53 t, err := time.Parse(time.RFC3339, text)
54 if err != nil {
55 panic(err)
56 }
57 return t
58}
59
60func TestDecodeMapStructJsonRawMessage(t *testing.T) {
61 input := map[string]interface{}{

Callers 1

TestIso8601TimeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected