Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for TestInterface (0.51 sec)

  1. 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)
  2. 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)
  3. src/net/interface_linux_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"fmt"
    	"os/exec"
    	"testing"
    )
    
    func (ti *testInterface) setBroadcast(suffix int) error {
    	ti.name = fmt.Sprintf("gotest%d", suffix)
    	xname, err := exec.LookPath("ip")
    	if err != nil {
    		return err
    	}
    	ti.setupCmds = append(ti.setupCmds, &exec.Cmd{
    		Path: xname,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 06 00:05:32 UTC 2018
    - 3.7K bytes
    - Viewed (0)
  4. 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)
  5. src/crypto/aes/modes_test.go

    package aes
    
    import (
    	"crypto/cipher"
    	"testing"
    )
    
    // Check that the optimized implementations of cipher modes will
    // be picked up correctly.
    
    // testInterface can be asserted to check that a type originates
    // from this test group.
    type testInterface interface {
    	InAESPackage() bool
    }
    
    // testBlock implements the cipher.Block interface and any *Able
    // interfaces that need to be tested.
    type testBlock struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 15:32:26 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  6. 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)
  7. src/net/interface_bsd_test.go

    // license that can be found in the LICENSE file.
    
    //go:build darwin || dragonfly || freebsd || netbsd || openbsd
    
    package net
    
    import (
    	"errors"
    	"fmt"
    	"os/exec"
    	"runtime"
    )
    
    func (ti *testInterface) setBroadcast(vid int) error {
    	if runtime.GOOS == "openbsd" {
    		ti.name = fmt.Sprintf("vether%d", vid)
    	} else {
    		ti.name = fmt.Sprintf("vlan%d", vid)
    	}
    	xname, err := exec.LookPath("ifconfig")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/testdata/compound_test.go

    	}
    }
    
    func interface_ssa(a, b interface{}, x bool) interface{} {
    	var s interface{}
    	if x {
    		s = a
    	} else {
    		s = b
    	}
    	return s
    }
    
    func testInterface(t *testing.T) {
    	a := interface{}(3)
    	b := interface{}(4)
    	if want, got := 3, interface_ssa(a, b, true).(int); got != want {
    		t.Errorf("interface_ssa(%v, %v, true) = %v, want %v\n", a, b, got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:40:04 UTC 2020
    - 2.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top