Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 152 for mytype (0.09 sec)

  1. test/fixedbugs/issue52279.dir/lib.go

    package lib
    
    type FMap[K comparable, V comparable] map[K]V
    
    //go:noinline
    func (m FMap[K, V]) Flip() FMap[V, K] {
    	out := make(FMap[V, K])
    	return out
    }
    
    type MyType uint8
    
    const (
    	FIRST MyType = 0
    )
    
    var typeStrs = FMap[MyType, string]{
    	FIRST: "FIRST",
    }
    
    func (self MyType) String() string {
    	return typeStrs[self]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 19:15:31 UTC 2022
    - 321 bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/watch/mux_test.go

    		{Type: Modified, Object: &myType{"foo", "goodbye world 3"}},
    		{Type: Deleted, Object: &myType{"bar", "hello world 4"}},
    	}
    
    	// The broadcaster we're testing
    	m := NewBroadcaster(0, WaitIfChannelFull)
    
    	// Add a bunch of watchers
    	const testWatchers = 2
    	wg := sync.WaitGroup{}
    	wg.Add(testWatchers)
    	for i := 0; i < testWatchers; i++ {
    		w, err := m.Watch()
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 16 15:26:25 UTC 2022
    - 8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/authorization/metrics/metrics_test.go

        # TYPE apiserver_authorization_decisions_total counter`
    	metrics := []string{
    		namespace + "_" + subsystem + "_decisions_total",
    	}
    
    	authorizationDecisionsTotal.Reset()
    	RegisterMetrics()
    
    	dummyAuthorizer := &dummyAuthorizer{}
    	a := InstrumentedAuthorizer("mytype", "myname", dummyAuthorizer)
    
    	// allow
    	{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 13:20:59 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  4. test/reflectmethod3.go

    // assigned to interfaces, but only if reflect.Type.Method is
    // never used. Test it here.
    
    package main
    
    import "reflect"
    
    var called = false
    
    type M int
    
    func (m M) UniqueMethodName() {
    	called = true
    }
    
    var v M
    
    type MyType interface {
    	Method(int) reflect.Method
    }
    
    func main() {
    	var t MyType = reflect.TypeOf(v)
    	t.Method(0).Func.Interface().(func(M))(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 21:19:20 UTC 2016
    - 651 bytes
    - Viewed (0)
  5. test/reflectmethod2.go

    // assigned to interfaces, but only if reflect.Type.MethodByName is
    // never used. Test it here.
    
    package main
    
    import reflect1 "reflect"
    
    var called = false
    
    type M int
    
    func (m M) UniqueMethodName() {
    	called = true
    }
    
    var v M
    
    type MyType interface {
    	MethodByName(string) (reflect1.Method, bool)
    }
    
    func main() {
    	var t MyType = reflect1.TypeOf(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 11 21:19:20 UTC 2016
    - 719 bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-integ-tests/src/integTest/kotlin/org/gradle/kotlin/dsl/plugins/dsl/KotlinDslPluginTest.kt

                import org.gradle.kotlin.dsl.assign
    
                data class MyType(val property: Property<String>)
    
                class MyPlugin : Plugin<Project> {
                    override fun apply(project: Project) {
                        val myType = MyType(property = project.objects.property(String::class.java))
                        myType.property = "value"
                    }
                }
    
                """
            )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 30 11:39:02 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.h

    // for registering the hardware.
    // Subclasses must implement the pure virtual function interface and
    // define static member variable that retrieves string identifying the Target
    // Hardware. Example,
    // class MyType : public TargetHardware {
    //  public:
    //   static constexpr char kId[] = "MyHardware";
    // };
    class TargetHardware {
     public:
      virtual ~TargetHardware() = default;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 21:39:59 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/notations/DependencyMapNotationConverterTest.groovy

        def parser = NotationParserBuilder.toType(ExternalModuleDependency).converter(new DependencyMapNotationConverter<DefaultExternalModuleDependency>(TestUtil.instantiatorFactory().decorateLenient(), DefaultExternalModuleDependency.class)).toComposite()
    
        def "with artifact"() {
            when:
            def d = parser.parseNotation([group: 'org.gradle', name: 'gradle-core', version: '4.4-beta2', ext: 'mytype'])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/notations/DependencyStringNotationConverterTest.groovy

            !d.force
            !d.transitive
            !d.changing
    
            d.artifacts.size() == 1
            d.artifacts.find { it.name == 'gradle-core' && it.classifier == null && it.type == 'mytype' }
        }
    
        def "with classified artifact"() {
            when:
            def d = parse(parser, 'org.gradle:gradle-core:10:jdk-1.4@zip')
    
            then:
            d.name == 'gradle-core'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 8K bytes
    - Viewed (0)
  10. tests/associations_test.go

    	// many to many
    	err = DB.Model(&emptyUser).Association("Languages").Delete(&user1.Languages)
    	AssertEqual(t, err, gorm.ErrPrimaryKeyRequired)
    }
    
    type (
    	myType           string
    	emptyQueryClause struct {
    		Field *schema.Field
    	}
    )
    
    func (myType) QueryClauses(f *schema.Field) []clause.Interface {
    	return []clause.Interface{emptyQueryClause{Field: f}}
    }
    
    func (sd emptyQueryClause) Name() string {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Feb 08 08:29:09 UTC 2023
    - 10.9K bytes
    - Viewed (0)
Back to top