MCPcopy
hub / github.com/gogo/protobuf / TestNidRepNativeGoString

Function TestNidRepNativeGoString

test/combos/both/thetestpb_test.go:13877–13889  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

13875 }
13876}
13877func TestNidRepNativeGoString(t *testing.T) {
13878 popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
13879 p := NewPopulatedNidRepNative(popr, false)
13880 s1 := p.GoString()
13881 s2 := fmt.Sprintf("%#v", p)
13882 if s1 != s2 {
13883 t.Fatalf("GoString want %v got %v", s1, s2)
13884 }
13885 _, err := go_parser.ParseExpr(s1)
13886 if err != nil {
13887 t.Fatal(err)
13888 }
13889}
13890func TestNinRepNativeGoString(t *testing.T) {
13891 popr := math_rand.New(math_rand.NewSource(time.Now().UnixNano()))
13892 p := NewPopulatedNinRepNative(popr, false)

Callers

nothing calls this directly

Calls 2

NewPopulatedNidRepNativeFunction · 0.70
GoStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…