MCPcopy Create free account
hub / github.com/stretchr/objx / TestMapFromSignedBase64String

Function TestMapFromSignedBase64String

map_test.go:167–175  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

165}
166
167func TestMapFromSignedBase64String(t *testing.T) {
168 base64String := "eyJuYW1lIjoiTWF0In0=_67ee82916f90b2c0d68c903266e8998c9ef0c3d6"
169
170 o, err := objx.FromSignedBase64(base64String, "key")
171
172 require.NoError(t, err)
173 assert.Equal(t, o.Get("name").Str(), "Mat")
174 assert.Equal(t, objx.MustFromSignedBase64(base64String, "key").Get("name").Str(), "Mat")
175}
176
177func TestMapFromSignedBase64StringWithError(t *testing.T) {
178 base64String := "eyJuYW1lasdIjoiTWF0In0=_67ee82916f90b2c0d68c903266e8998c9ef0c3d6"

Callers

nothing calls this directly

Calls 6

FromSignedBase64Function · 0.92
MustFromSignedBase64Function · 0.92
StrMethod · 0.80
GetMethod · 0.80
NoErrorMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…