Home | History | Annotate | Download | only in gob

Lines Matching defs:String

311 	// string
314 var data string = "hello"
319 t.Errorf("string enc instructions: expected % x got % x", bytesResult, b.Bytes())
324 func execDec(typ string, instr *decInstr, state *decoderState, t *testing.T, value reflect.Value) {
527 if string(data) != "hello" {
528 t.Errorf(`bytes a = %q not "hello"`, string(data))
532 // string
534 var data string
546 T string
552 M map[string]*float64
553 EmptyMap map[string]int // to check that we receive a non-nil map.
555 Strs *[2]string
558 S string
568 M: map[string]*float64{"pi": &pi, "e": &e},
569 EmptyMap: make(map[string]int),
571 Strs: &[2]string{s1, s2},
771 A string
894 B string
899 B string
901 NotSet string
926 B string
930 Ignore_g string
933 Ignore_m map[string]int
950 it0.Ignore_m = map[string]int{"one": 1, "two": 2}
982 M ****map[string]int
988 M map[string]int
1002 i.M = new(***map[string]int)
1003 *i.M = new(**map[string]int)
1004 **i.M = new(*map[string]int)
1005 ***i.M = new(map[string]int)
1006 ****i.M = map[string]int{"one": 1, "two": 2, "three": 3}
1027 d.M = map[string]int{"four": 4, "five": 5, "six": 6}
1156 String interface{}
1188 if v, ok := item2.String.(string); !ok || v != item1.String.(string) {
1189 t.Errorf("string should be %v is %v", item1.String, v)
1193 type String string
1205 str2 := String("kiddo")
1223 if v, ok := item2.Str1.(string); !ok || v != str1 {
1224 t.Errorf("basic string failed: %q should be %q", v, str1)
1226 if v, ok := item2.Str2.(String); !ok || v != str2 {
1227 t.Errorf("derived type String failed: %q should be %q", v, str2)
1263 B string
1298 map[string]int{"one": 1, "two": 2},
1324 B string
1329 M map[string]int
1331 S []string
1342 dt.M = map[string]int{"one": 1, "two": 2}
1344 dt.S = []string{"hi", "joe"}
1443 s := buf.String()