- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 107 for testCode (0.37 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/tls_test.go
metav1.AddToGroupVersion(scheme, metav1.SchemeGroupVersion) utilruntime.Must(example.AddToScheme(scheme)) utilruntime.Must(examplev1.AddToScheme(scheme)) } func TestTLSConnection(t *testing.T) { codec := apitesting.TestCodec(codecs, examplev1.SchemeGroupVersion) certFile, keyFile, caFile := configureTLSCerts(t) defer os.RemoveAll(filepath.Dir(certFile)) // override server config to be TLS-enabled
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 17:57:37 UTC 2024 - 3.4K bytes - Viewed (0) -
src/go/format/format_test.go
return } if s == '\n' { line++ offs = i + 1 } } if len(dst) != len(src) { t.Errorf("len(dst) = %d, len(src) = %d\nsrc = %q", len(dst), len(src), src) } } func TestNode(t *testing.T) { src, err := os.ReadFile(testfile) if err != nil { t.Fatal(err) } fset := token.NewFileSet() file, err := parser.ParseFile(fset, testfile, src, parser.ParseComments) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 20 03:54:46 UTC 2021 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_testing_utils_test.go
func newEtcdTestStorage(t *testing.T, prefix string) (*etcd3testing.EtcdTestServer, storage.Interface) { server, _ := etcd3testing.NewUnsecuredEtcd3TestClientServer(t) storage := etcd3.New( server.V3Client, apitesting.TestCodec(codecs, examplev1.SchemeGroupVersion), newPod, newPodList, prefix, "/pods", schema.GroupResource{Resource: "pods"}, identity.NewEncryptCheckTransformer(), etcd3.NewDefaultLeaseManagerConfig())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 20 20:43:52 UTC 2023 - 3.8K bytes - Viewed (0) -
src/mime/multipart/multipart_test.go
foo-bar: bazb Line 1 Line 2 Line 3 ends in a newline, but just one. --MyBoundary never read data --MyBoundary-- useless trailer ` testBody = strings.ReplaceAll(testBody, "\n", sep) return strings.Replace(testBody, "[longline]", longLine, 1) } func TestMultipart(t *testing.T) { bodyReader := strings.NewReader(testMultipartBody("\r\n")) testMultipart(t, bodyReader, false) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 17:36:47 UTC 2022 - 30.4K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/audit_test.go
// fixtures simpleFoo := &genericapitesting.Simple{Other: "foo"} simpleFooJSON, _ := runtime.Encode(testCodec, simpleFoo) simpleCPrime := &genericapitesting.Simple{ ObjectMeta: metav1.ObjectMeta{Name: "c", Namespace: "other"}, Other: "bla", } simpleCPrimeJSON, _ := runtime.Encode(testCodec, simpleCPrime) userAgent := "audit-test" // event checks noRequestBody := func(i int) eventCheck {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 14 23:04:34 UTC 2022 - 12.1K bytes - Viewed (0) -
plugin/pkg/admission/resourcequota/admission_test.go
if expectedValue != actualValue { t.Errorf("Usage Used: Key: %v, Expected: %v, Actual: %v", k, expectedValue, actualValue) } } } func removeListWatch(in []testcore.Action) []testcore.Action { decimatedActions := []testcore.Action{} // list and watch resource quota is done to maintain our cache, so that's expected. Remove them from results for i := range in {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 29 21:28:42 UTC 2024 - 84.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ModelGraphTest.groovy
0 * listener1.onDiscovered(_) 0 * listener2.onDiscovered(_) } def node(String path, Class<?> type = String, State state = State.Discovered) { def node = new TestNode(path, type) node.setState(state) return node } def root() { return node("", Void, State.Created) } private ModelListener allAcceptingListener() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 7.8K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h
// test, then wait for it to complete. enum TestRole { OVERSEE_TEST, EXECUTE_TEST }; // An enumeration of the three reasons that a test might be aborted. enum AbortReason { TEST_ENCOUNTERED_RETURN_STATEMENT, TEST_THREW_EXCEPTION, TEST_DID_NOT_DIE }; // Assumes one of the above roles. virtual TestRole AssumeRole() = 0;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 13.1K bytes - Viewed (0) -
src/net/http/transport_dial_test.go
t *testing.T connID int // distinguished Dials in logs ready chan error // sent on to complete the Dial net.Conn } func newTransportDialTester(t *testing.T, mode testMode) *transportDialTester { t.Helper() dt := &transportDialTester{ t: t, dials: make(chan *transportDialTesterConn), }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 17 21:11:57 UTC 2024 - 6.3K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/dynamicresources/structured/namedresources/namedresourcesmodel_test.go
return InstanceAllocation{ Allocated: allocated, Instance: &resourceapi.NamedResourcesInstance{ Name: name, Attributes: attributes, }, } } func TestModel(t *testing.T) { testcases := map[string]struct { resources []*resourceapi.NamedResourcesResources allocations []*resourceapi.NamedResourcesAllocationResult expectModel Model }{ "empty": {},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 27 09:27:01 UTC 2024 - 7.9K bytes - Viewed (0)