- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for TestInterface (0.17 sec)
-
maven-di/src/test/java/org/apache/maven/di/impl/TypeUtilsTest.java
{ Type type = new Key<TestInterface<? extends Integer, ? extends Integer>>() {}.getType(); Type expected = new Key<TestInterface<Integer, Integer>>() {}.getType(); assertEquals(expected, simplifyType(type)); } { Type type = new Key<TestInterface<Integer, Integer>>() {}.getType(); Type expected = new Key<TestInterface<Integer, Integer>>() {}.getType();
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Feb 09 17:13:31 UTC 2024 - 7K bytes - Viewed (0) -
src/net/interface_unix_test.go
package net import ( "fmt" "os" "os/exec" "runtime" "strings" "testing" "time" ) type testInterface struct { name string local string remote string setupCmds []*exec.Cmd teardownCmds []*exec.Cmd } func (ti *testInterface) setup() error { for _, cmd := range ti.setupCmds { if out, err := cmd.CombinedOutput(); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 18 23:51:35 UTC 2023 - 4.9K bytes - Viewed (0) -
maven-di/src/test/java/org/apache/maven/di/impl/InjectorImplTest.java
BindInterfaces.TestInterface<String> inst = injector.getInstance(new Key<BindInterfaces.TestInterface<String>>() {}); assertNotNull(inst); } static class BindInterfaces { interface TestInterface<T> { T getObj(); } @Named static class ClassImpl implements TestInterface<String> { @Override
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Feb 09 17:13:31 UTC 2024 - 9.2K bytes - Viewed (0) -
pkg/typemap/map_test.go
typemap.Set[TestInterface[string]](tm, TestStruct{Field: "interface"}) assert.Equal(t, typemap.Get[int](tm), ptr.Of(1)) assert.Equal(t, typemap.Get[int32](tm), ptr.Of(int32(2))) assert.Equal(t, typemap.Get[string](tm), ptr.Of("string")) assert.Equal(t, typemap.Get[*TestStruct](tm), ptr.Of(&TestStruct{Field: "pointer"}))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 16:38:40 UTC 2024 - 1.5K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassIteratorTest.java
assertThat(it.hasNext(), is(not(true))); } /** * @throws Exception */ @Test(expected = ClIllegalArgumentException.class) public void testInterface() throws Exception { new ClassIterator(Iterable.class); }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.1K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/tasks/options/OptionReaderTest.groovy
} public static abstract class AbstractTestClassWithInterface implements TestInterface { @Option(option = "objectValue", description = "object value") public void setObjectValue(Object value) { } } public static abstract class AbstractTestClassWithTwoInterfacesWithSameMethod implements TestInterface, TestInterfaceWithSameFunctionButDifferentOptionName {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Aug 10 12:45:01 UTC 2023 - 33.4K bytes - Viewed (0) -
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)