- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of about 10,000 for fFalse (0.17 sec)
-
test/stackobj3.go
f(s, true) if c != 2 { panic("bad liveness") } } func fFalse() { var s StkObj s.h = new(HeapObj) c = -1 n = 0 runtime.SetFinalizer(s.h, func(h *HeapObj) { // Remember at what phase the heap object was collected. c = n }) f(s, false) if c != 0 { panic("bad liveness") } } func main() { fTrue() fFalse()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 03 19:54:16 UTC 2018 - 1.4K bytes - Viewed (0) -
releasenotes/notes/endpoints-false-negative.yaml
dwq <******@****.***> 1702923949 +0800
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 18 18:25:49 UTC 2023 - 176 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go
tc.Run(t) } func TestHasUID(t *testing.T) { testcases := []struct { obj runtime.Object hasUID bool }{ {obj: nil, hasUID: false}, {obj: &example.Pod{}, hasUID: false}, {obj: nil, hasUID: false}, {obj: runtime.Object(nil), hasUID: false}, {obj: &example.Pod{ObjectMeta: metav1.ObjectMeta{UID: types.UID("A")}}, hasUID: true}, } for i, tc := range testcases { actual, err := hasUID(tc.obj)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 41.8K bytes - Viewed (0) -
src/encoding/xml/xml_test.go
{`<x:book xmlns:x="abcd" xmlns:y="abcd"><unclosetag>one</x:book>`, false}, {`<x:book xmlns:x="abcd" xmlns:y="abcd">one</x:book>`, true}, {`<x:book xmlns:x="abcd" xmlns:y="abcd">one</y:book>`, false}, {`<x:book xmlns:y="abcd" xmlns:x="abcd">one</y:book>`, false}, {`<x:book xmlns:x="abcd">one</y:book>`, false}, {`<x:book>one</y:book>`, false}, {`<xbook>one</ybook>`, false}, } for _, tc := range testCases {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 36.9K bytes - Viewed (0) -
pkg/securitycontext/util_test.go
func TestAddNoNewPrivileges(t *testing.T) { pfalse := false ptrue := true tests := map[string]struct { sc *v1.SecurityContext expect bool }{ "allowPrivilegeEscalation nil security context nil": { sc: nil, expect: false, }, "allowPrivilegeEscalation nil": { sc: &v1.SecurityContext{ AllowPrivilegeEscalation: nil, }, expect: false, }, "allowPrivilegeEscalation false": {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 05 01:25:23 UTC 2020 - 5K bytes - Viewed (0) -
pkg/kubeapiserver/authorizer/modes/modes_test.go
*/ package modes import "testing" func TestIsValidAuthorizationMode(t *testing.T) { var tests = []struct { authzMode string expected bool }{ {"", false}, {"rBAC", false}, // not supported {"falsy value", false}, // not supported {"RBAC", true}, // supported {"ABAC", true}, // supported {"Webhook", true}, // supported {"AlwaysAllow", true}, // supported
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 23 13:27:16 UTC 2017 - 1.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/BooleanConversionUtilTest.java
assertEquals("6", Boolean.TRUE, BooleanConversionUtil.toBoolean("true")); assertEquals("7", Boolean.FALSE, BooleanConversionUtil.toBoolean("false")); assertEquals("8", Boolean.TRUE, BooleanConversionUtil.toBoolean("fase")); // typo }
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.5K bytes - Viewed (0) -
test/const.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 26 23:54:29 UTC 2019 - 4.8K bytes - Viewed (0) -
pkg/volume/csi/csi_attacher_test.go
}, }, { name: "all detached", attachedSpecs: []attachedSpec{ {"vol0", volume.NewSpecFromPersistentVolume(makeTestPV("pv0", 10, testDriver, "vol0"), false), false}, {"vol1", volume.NewSpecFromPersistentVolume(makeTestPV("pv1", 20, testDriver, "vol1"), false), false}, {"vol2", volume.NewSpecFromPersistentVolume(makeTestPV("pv2", 10, testDriver, "vol2"), false), false}, }, },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 18 12:23:16 UTC 2024 - 58.1K bytes - Viewed (0) -
pkg/util/iptables/testing/parse.go
typ := value.Type() for i := 0; i < typ.NumField(); i++ { field := typ.Field(i) if field.Tag.Get("param") == param { fValue := value.Field(i) return &fValue, field.Tag.Get("negatable") == "true" } } return nil, false } // wordRegex matches a single word or a quoted string (at the start of the string, or // preceded by whitespace)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 19 01:20:51 UTC 2023 - 11.6K bytes - Viewed (0)