MCPcopy
hub / github.com/urfave/cli / TestUint64Slice_Serialized_Set

Function TestUint64Slice_Serialized_Set

flag_test.go:2430–2440  ·  flag_test.go::TestUint64Slice_Serialized_Set
(t *testing.T)

Source from the content-addressed store, hash-verified

2428}
2429
2430func TestUint64Slice_Serialized_Set(t *testing.T) {
2431 sl0 := NewUint64Slice(1, 2)
2432 ser0 := sl0.Serialize()
2433
2434 require.GreaterOrEqual(t, len(ser0), len(slPfx), "serialized shorter than expected")
2435
2436 sl1 := NewUint64Slice(3, 4)
2437 _ = sl1.Set(ser0)
2438
2439 require.Equal(t, sl0.String(), sl1.String(), "pre and post serialization do not match")
2440}
2441
2442func TestStringMap_Serialized_Set(t *testing.T) {
2443 m0 := NewStringMap(map[string]string{"a": "b"})

Callers

nothing calls this directly

Calls 3

SerializeMethod · 0.65
SetMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected