Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for expectKind (0.17 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/codec_test.go

    			v := runtime.NewCoercingMultiGroupVersioner(tc.target, tc.preferredKinds...)
    			kind, ok := v.KindForGroupVersionKinds(tc.kinds)
    			if !ok {
    				t.Error("got no kind")
    			}
    			if kind != tc.expectKind {
    				t.Errorf("expected %#v, got %#v", tc.expectKind, kind)
    			}
    			if e, a := tc.expectedId, v.Identifier(); e != a {
    				t.Errorf("unexpected identifier: %s, expected: %s", a, e)
    			}
    		})
    	}
    }
    
    type mockEncoder struct{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 30 06:58:54 UTC 2019
    - 3.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/LightTreeUtil.kt

    
    internal
    val LighterASTNode.isUseful: Boolean
        get() = !(COMMENTS.contains(tokenType) || tokenType == WHITE_SPACE || tokenType == SEMICOLON)
    
    
    internal
    fun LighterASTNode.expectKind(expected: IElementType) {
        check(isKind(expected))
    }
    
    
    internal
    fun List<LighterASTNode>.expectSingleOfKind(expected: IElementType): LighterASTNode =
        this.single { it.isKind(expected) }
    
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. test/reorder2.go

    	err := 0
    	var t TT
    	if a("1")("2")("3"); log != "a(1)a(2)a(3)" {
    		println("expecting a(1)a(2)a(3) , got ", log)
    		err++
    	}
    	log = ""
    
    	if t.a("1").a(t.b("2")); log != "a(1)b(2)a(2)" {
    		println("expecting a(1)b(2)a(2), got ", log)
    		err++
    	}
    	log = ""
    	if a("3")(b("4"))(b("5")); log != "a(3)b(4)a(4)b(5)a(5)" {
    		println("expecting a(3)b(4)a(4)b(5)a(5), got ", log)
    		err++
    	}
    	log = ""
    	var i I = T1(0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 7.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/CombinatorsTest.kt

            val parser = combinator.symbol("foo") * combinator.symbol("bar")
            assertFailure(parser("foo"), "Expecting symbol 'bar'")
            assertFailure(parser("bar"), "Expecting symbol 'foo', but got 'bar' instead")
            assertFailure(parser("foobar"), "Expecting symbol 'foo', but got 'foobar' instead")
        }
    
        private
        fun assertFailure(parse: ParserResult<*>, reason: String) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/PluginDependenciesSpecScopeTest.kt

        fun `given a single id, it should create a single request with no version`() {
            expecting(plugin(id = "plugin-id")) {
                id("plugin-id")
            }
        }
    
        @Test
        fun `given a single id and apply value, it should create a single request with no version`() {
            listOf(true, false).forEach { applyValue ->
                expecting(plugin(id = "plugin-id", isApply = applyValue)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 06:46:04 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. test/fixedbugs/issue19467.dir/z.go

    		frame, more := ci.Next()
    		frames = append(frames, frame)
    		if !more {
    			break
    		}
    	}
    	expecting := []string{
    		"test/mysync.(*WaitGroup).Add",
    		"test/mysync.(*WaitGroup).Done",
    	}
    	for i := 0; i < 2; i++ {
    		if frames[i].Function != expecting[i] {
    			log.Fatalf("frame %d: got %s, want %s", i, frames[i].Function, expecting[i])
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 17:50:47 UTC 2022
    - 696 bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectInAnyOrder.java

        }
    
        @Override
        public boolean expecting(HttpExchange exchange) {
            lock.lock();
            try {
                if (current != null) {
                    return current.expecting(exchange);
                }
                for (TrackingHttpHandler handler : available) {
                    if (handler.expecting(exchange)) {
                        return true;
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. test/fixedbugs/issue13319.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func f(int, int) {
        switch x {
        case 1:
            f(1, g()   // ERROR "expecting \)|possibly missing comma or \)"
        case 2:
            f()
        case 3:
            f(1, g()   // ERROR "expecting \)|possibly missing comma or \)"
        }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 00:26:58 UTC 2022
    - 423 bytes
    - Viewed (0)
  9. test/fixedbugs/issue4562.go

    	fmt.Println("finished")
    }
    
    func expectError(expectLine int) {
    	if recover() == nil {
    		panic("did not crash")
    	}
    	for i := 1;; i++ {
    		_, file, line, ok := runtime.Caller(i)
    		if !ok {
    			panic("cannot find issue4562.go on stack")
    		}
    		if strings.HasSuffix(file, "issue4562.go") {
    			if line != expectLine {
    				panic(fmt.Sprintf("crashed at line %d, wanted line %d", line, expectLine))
    			}
    			break
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 881 bytes
    - Viewed (0)
  10. pkg/log/default_test.go

    			}
    			funcs.Store(pt)
    
    			if c.debugEnabled != DebugEnabled() {
    				t.Errorf("Got %v, expecting %v", DebugEnabled(), c.debugEnabled)
    			}
    
    			if c.infoEnabled != InfoEnabled() {
    				t.Errorf("Got %v, expecting %v", InfoEnabled(), c.infoEnabled)
    			}
    
    			if c.warnEnabled != WarnEnabled() {
    				t.Errorf("Got %v, expecting %v", WarnEnabled(), c.warnEnabled)
    			}
    
    			if c.errorEnabled != ErrorEnabled() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top