MCPcopy Create free account
hub / github.com/crewjam/saml / TestDuration

Function TestDuration

duration_test.go:27–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

25}
26
27func 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
37var durationUnmarshalTests = []struct {
38 in []byte

Callers

nothing calls this directly

Calls 2

DurationTypeAlias · 0.85
MarshalTextMethod · 0.45

Tested by

no test coverage detected