Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for notOk (0.04 sec)

  1. test/slicecap.go

    	bytes = []byte{1, 2, 3, 4, 5}
    	ints  = []int32{1, 2, 3, 4, 5}
    
    	five = 5
    
    	ok = true
    )
    
    func notOK() {
    	if ok {
    		println("BUG:")
    		ok = false
    	}
    }
    
    func checkString(desc, s string) {
    	p1 := *(*uintptr)(unsafe.Pointer(&s))
    	p2 := *(*uintptr)(unsafe.Pointer(&hello))
    	if p1-p2 >= 5 {
    		notOK()
    		println("string", desc, "has invalid base")
    	}
    }
    
    func checkBytes(desc string, s []byte) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.9K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cover_var_init_order.txt

    import (
    	"flag"
    )
    
    var (
    	fooFlag = flag.String("foo", "", "this should be ok")
    	foo     = flag.Lookup("foo")
    
    	barFlag = flag.String("bar", "", "this should be also ok, but is "+notOK()+".")
    	bar     = flag.Lookup("bar")
    )
    
    func notOK() string {
    	return "not OK"
    }
    
    -- m_test.go --
    
    package main
    
    import (
    	"testing"
    )
    
    func TestFoo(t *testing.T) {
    	if foo == nil {
    		t.Fatal()
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 18:14:15 UTC 2022
    - 784 bytes
    - Viewed (0)
  3. test/slice3.go

    	v1 = 1
    	v2 = 2
    	v3 = 3
    	v4 = 4
    	v5 = 5
    	v10 = 10
    	v20 = 20
    )
    
    func notOK() {
    	if ok {
    		println("BUG:")
    		ok = false
    	}
    }
    
    func checkSlice(desc string, f func() []byte, xbase, xlen, xcap int) {
    	defer func() {
    		if err := recover(); err != nil {
    			if xbase >= 0 {
    				notOK()
    				println(desc, " unexpected panic: ", fmt.Sprint(err))
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/MessageTest.groovy

        }
    
        def "can transport broken multicause exception"() {
            def ok = new RuntimeException("broken 1")
            def notOk = new ExceptionWithNonSerializableField("broken 2", new RuntimeException("broken 3"))
            def original = new MultiCauseExceptionWithExceptionField("original", notOk, [ok, notOk])
    
            when:
            def transported = transport(original)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheReportIntegrationTest.groovy

        def "report with problem loads successfully"() {
            given:
            buildFile '''
                tasks.register('notOk') {
                    doLast { println project.name }
                }
            '''
    
            when:
            configurationCacheFails 'notOk'
    
            then:
            def configurationCacheReport = resolveConfigurationCacheReport(testDirectory, failure.error)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. tests/integration/security/remote_jwks/remote_jwks_test.go

    						opts.HTTP.Path = "/valid-token-forward-remote-jwks"
    						opts.HTTP.Headers = headers.New().WithAuthz(jwt.TokenIssuer1).Build()
    						opts.Check = check.And(
    							check.NotOK(),
    							check.Status(http.StatusUnauthorized))
    					},
    				},
    				{
    					name:       "remote-jwks-with-service-entry",
    					policyFile: "./testdata/requestauthn-with-se.yaml.tmpl",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/inspect/ModelRuleExtractorTest.groovy

    - Method notOk() is not a valid rule method: A rule method cannot be private
    - Method notOk() is not a valid rule method: Cannot have type variables (i.e. cannot be a generic method)
    - Method notOk() is not a valid rule method: A method annotated with @Mutate must have at least one parameter
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 30.4K bytes
    - Viewed (0)
  8. src/runtime/sys_darwin_arm64.s

    	MOVW	0(R0), R0	// arg 1 how
    	BL	libc_pthread_sigmask(SB)
    	CMP	$0, R0
    	BEQ	2(PC)
    	BL	notok<>(SB)
    	RET
    
    TEXT runtime·sigaction_trampoline(SB),NOSPLIT,$0
    	MOVD	8(R0), R1	// arg 2 new
    	MOVD	16(R0), R2	// arg 3 old
    	MOVW	0(R0), R0	// arg 1 how
    	BL	libc_sigaction(SB)
    	CMP	$0, R0
    	BEQ	2(PC)
    	BL	notok<>(SB)
    	RET
    
    TEXT runtime·usleep_trampoline(SB),NOSPLIT,$0
    	MOVW	0(R0), R0	// arg 1 usec
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  9. tests/integration/security/ca_custom_root/trust_domain_alias_secure_naming_test.go

    								},
    								Address: to.Config().Service,
    								Scheme:  s,
    							}
    							if success {
    								opts.Check = check.And(check.OK(), check.ReachedTargetClusters(t))
    							} else {
    								opts.Check = check.NotOK()
    							}
    
    							from.CallOrFail(t, opts)
    						})
    					}
    
    					client := match.Cluster(cluster).FirstOrFail(t, client)
    					cases := []struct {
    						src    echo.Instance
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/check/checkers.go

    	return Or(Error(), NotStatus(expected))
    }
    
    // OK is shorthand for NoErrorAndStatus(200).
    func OK() echo.Checker {
    	return NoErrorAndStatus(http.StatusOK)
    }
    
    // NotOK is shorthand for ErrorOrNotStatus(http.StatusOK).
    func NotOK() echo.Checker {
    	return ErrorOrNotStatus(http.StatusOK)
    }
    
    // NoErrorAndStatus is checks that no error occurred and that the returned status code matches the expected
    // value.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 03 16:19:07 UTC 2023
    - 17.5K bytes
    - Viewed (0)
Back to top