- Sort Score
- Result 10 results
- Languages All
Results 11 - 13 of 13 for TestInterface (0.29 sec)
-
src/internal/fmtsort/sort_test.go
for _, test := range sortTests { got := sprint(test.data) if got != test.print { t.Errorf("%s: got %q, want %q", reflect.TypeOf(test.data), got, test.print) } } } func TestInterface(t *testing.T) { // A map containing multiple concrete types should be sorted by type, // then value. However, the relative ordering of types is unspecified, // so test this by checking the presence of sorted subgroups.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.9K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/shared_test.go
} // Tests to make sure that the type fields of empty interfaces and itab // fields of nonempty interfaces are unique even across modules, // so that interface equality works correctly. func TestInterface(t *testing.T) { globalSkip(t) goCmd(t, "install", "-buildmode=shared", "-linkshared", "./iface_a") // Note: iface_i gets installed implicitly as a dependency of iface_a.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 26 01:54:41 UTC 2023 - 36.3K bytes - Viewed (0) -
src/encoding/gob/codec_test.go
Sq1, Sq2, Sq3 Squarer F float64 Sq []Squarer } // The same struct without interfaces type NoInterfaceItem struct { I int F float64 } func TestInterface(t *testing.T) { iVal := Int(3) fVal := Float(5) // Sending a Vector will require that the receiver define a type in the middle of // receiving the value for item2. vVal := Vector{1, 2, 3}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Aug 19 23:03:14 UTC 2023 - 36.9K bytes - Viewed (0)