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

Function TestMapFromBase64StringWithError

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

Source from the content-addressed store, hash-verified

155}
156
157func TestMapFromBase64StringWithError(t *testing.T) {
158 base64String := "eyJuYW1lIjoiTWFasd0In0="
159 _, err := objx.FromBase64(base64String)
160
161 assert.Error(t, err)
162 assert.Panics(t, func() {
163 objx.MustFromBase64(base64String)
164 })
165}
166
167func TestMapFromSignedBase64String(t *testing.T) {
168 base64String := "eyJuYW1lIjoiTWF0In0=_67ee82916f90b2c0d68c903266e8998c9ef0c3d6"

Callers

nothing calls this directly

Calls 4

FromBase64Function · 0.92
MustFromBase64Function · 0.92
ErrorMethod · 0.45
PanicsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…