- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestStructOfWithInterface (0.29 sec)
-
src/reflect/all_test.go
func (p *SettableStruct) Set(v int) { p.SettableField = v } type SettablePointer struct { SettableField *int } func (p *SettablePointer) Set(v int) { *p.SettableField = v } func TestStructOfWithInterface(t *testing.T) { const want = 42 type Iface interface { Get() int } type IfaceSet interface { Set(int) } tests := []struct { name string typ Type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)