- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 107 for testCode (0.21 sec)
-
pkg/apis/resource/install/install_test.go
version, err = meta.NewAccessor().ResourceVersion(&claimList) if err != nil { t.Fatalf("unexpected error: %v", err) } if version != "10" { t.Errorf("unexpected version %v", version) } } func TestCodec(t *testing.T) { claim := internal.ResourceClaim{} data, err := runtime.Encode(legacyscheme.Codecs.LegacyCodec(schema.GroupVersion{Group: "resource.k8s.io", Version: "v1alpha2"}), &claim) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 06:52:03 UTC 2023 - 2.3K bytes - Viewed (0) -
platforms/jvm/jvm-services/src/test/groovy/org/gradle/internal/jvm/inspection/InvalidInstallationWarningReporterTest.groovy
} def 'reporter logs meaningful message'() { given: def reporter = new InvalidInstallationWarningReporter(mockLogger) def location = InstallationLocation.userDefined(new File("testHome"), "test") def metadata = Mock(JvmInstallationMetadata) { isValidInstallation() >> false } when: reporter.accept(location, metadata) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 12 18:25:34 UTC 2024 - 2.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete_test.go
} fakeCorev1GroupVersion := schema.GroupVersion{ Group: "", Version: "v1", } testScheme := runtime.NewScheme() metav1.AddToGroupVersion(testScheme, fakeCorev1GroupVersion) testCodec := serializer.NewCodecFactory(testScheme) tests := []struct { name string object runtime.Object gv schema.GroupVersion serializer serializer.CodecFactory ok bool }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jul 03 16:16:51 UTC 2023 - 8.2K bytes - Viewed (0) -
pkg/apis/core/install/install_test.go
version, err = meta.NewAccessor().ResourceVersion(&podList) if err != nil { t.Fatalf("unexpected error: %v", err) } if version != "10" { t.Errorf("unexpected version %v", version) } } func TestCodec(t *testing.T) { pod := internal.Pod{} data, err := runtime.Encode(legacyscheme.Codecs.LegacyCodec(schema.GroupVersion{Group: "", Version: "v1"}), &pod) if err != nil { t.Fatalf("unexpected error: %v", err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Dec 27 06:11:15 UTC 2019 - 2.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/apis/example/fuzzer/fuzzer.go
types := []runtime.Object{&example.Pod{}} obj := types[c.Rand.Intn(len(types))] c.Fuzz(obj) // Convert the object to raw bytes bytes, err := runtime.Encode(apitesting.TestCodec(codecs, examplev1.SchemeGroupVersion), obj) if err != nil { panic(fmt.Sprintf("Failed to encode object: %v", err)) } // Set the bytes field on the RawExtension r.Raw = bytes }, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 01 19:31:12 UTC 2018 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/fuzzer/fuzzer.go
types := []runtime.Object{&testapigroup.Carp{}} obj := types[c.Rand.Intn(len(types))] c.Fuzz(obj) // Convert the object to raw bytes bytes, err := runtime.Encode(apitesting.TestCodec(codecs, v1.SchemeGroupVersion), obj) if err != nil { panic(fmt.Sprintf("Failed to encode object: %v", err)) } // Set the bytes field on the RawExtension r.Raw = bytes }, } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 01 19:31:12 UTC 2018 - 3.1K bytes - Viewed (0) -
test/typeparam/listimp2.dir/main.go
panic(fmt.Sprintf("e.value = %d, want 1", e.Value)) } if e.Next() != nil { panic(fmt.Sprintf("e.Next() != nil")) } if e.Prev() != nil { panic(fmt.Sprintf("e.Prev() != nil")) } } func TestMove() { l := a.New[int]() e1 := l.PushBack(1) e2 := l.PushBack(2) e3 := l.PushBack(3) e4 := l.PushBack(4) l.MoveAfter(e3, e3) a.CheckListPointers(l, []*(a.Element[int]){e1, e2, e3, e4})
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 24 02:14:15 UTC 2022 - 7.4K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/RemoteDependencyResolveConsoleIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun Jan 14 00:59:27 UTC 2024 - 5.2K bytes - Viewed (0) -
src/net/http/request_test.go
b.Fatalf("Failed to copy %d bytes: %v", n, err) } run(b, func(b *testing.B, mode testMode) { runFileAndServerBenchmarks(b, mode, f, n) }, []testMode{http1Mode, https1Mode, http2Mode}) } func runFileAndServerBenchmarks(b *testing.B, mode testMode, f *os.File, n int64) { handler := HandlerFunc(func(rw ResponseWriter, req *Request) { defer req.Body.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/impl/FieldDescImplTest.java
import org.junit.Test; /** * @author koichik */ public class FieldDescImplTest { /** * @throws Exception */ @Test public void testHOGE() throws Exception { final BeanDesc beanDesc = new BeanDescImpl(MyBean.class); final FieldDesc hoge = beanDesc.getFieldDesc("HOGE"); assertThat(hoge.getBeanDesc(), is(sameInstance(beanDesc)));
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5K bytes - Viewed (0)