- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for TestRoundTrip (0.31 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/secretbox/secretbox_test.go
b.ResetTimer() for i := 0; i < b.N; i++ { _, err := p.TransformToStorage(ctx, v, dataCtx) if err != nil { b.Fatal(err) } } b.StopTimer() } func TestRoundTrip(t *testing.T) { lengths := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 128, 1024} ctx := context.Background() tests := []struct { name string dataCtx value.Context
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 17 16:31:31 UTC 2022 - 6.8K bytes - Viewed (0) -
src/mime/quotedprintable/writer_test.go
t.Errorf("Close(): %v", err) continue } got := buf.String() if got != want { t.Errorf("Write(%q), got:\n%q\nwant:\n%q", tt.in, got, want) } } } func TestRoundTrip(t *testing.T) { buf := new(bytes.Buffer) w := NewWriter(buf) if _, err := w.Write(testMsg); err != nil { t.Fatalf("Write: %v", err) } if err := w.Close(); err != nil { t.Fatalf("Close: %v", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 17:36:47 UTC 2022 - 5.1K bytes - Viewed (0) -
src/encoding/pem/pem_test.go
return false } return true } // Explicitly test the empty block. if !testRoundtrip(Block{ Type: "EMPTY", Headers: make(map[string]string), Bytes: []byte{}, }) { return } quick.Check(testRoundtrip, nil) } func BenchmarkEncode(b *testing.B) { data := &Block{Bytes: make([]byte, 65536)} b.SetBytes(int64(len(data.Bytes)))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 22:56:00 UTC 2022 - 23.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
HashCode hash1 = Hashing.sha1().hashString("foo", Charsets.US_ASCII); HashCode hash2 = HashCode.fromString(hash1.toString()); assertEquals(hash1, hash2); } public void testRoundTrip() { for (ExpectedHashCode expected : expectedHashCodes) { String string = HashCode.fromBytes(expected.bytes).toString(); assertEquals(expected.toString, string); assertEquals(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 13.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/validation_test.go
"k8s.io/apimachinery/pkg/util/json" "k8s.io/apimachinery/pkg/util/sets" celconfig "k8s.io/apiserver/pkg/apis/cel" ) // TestRoundTrip checks the conversion to go-openapi types. // internal -> go-openapi -> JSON -> external -> internal func TestRoundTrip(t *testing.T) { scheme := runtime.NewScheme() codecs := serializer.NewCodecFactory(scheme) // add internal and external types to scheme
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 18 04:49:59 UTC 2023 - 24.8K bytes - Viewed (0) -
maven-repository-metadata/src/test/java/org/apache/maven/artifact/repository/metadata/MetadataTest.java
assertEquals(2, target.getVersioning().getSnapshot().getBuildNumber()); } /*-- END test "groupId/artifactId/version" metadata ---*/ @Test void testRoundtrip() throws Exception { System.setProperty(XMLInputFactory.class.getName(), WstxInputFactory.class.getName()); System.setProperty(XMLOutputFactory.class.getName(), WstxOutputFactory.class.getName());
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 14.1K bytes - Viewed (0) -
src/encoding/xml/xml_test.go
t.Fatalf("lost tokens: %#v", tokens) } } func TestRoundTrip(t *testing.T) { tests := map[string]string{ "trailing colon": `<foo abc:="x"></foo>`, "comments in directives": `<!ENTITY x<!<!-- c1 [ " -->--x --> > <e></e> <!DOCTYPE xxx [ x<!-- c2 " -->--x ]>`, } for name, input := range tests { t.Run(name, func(t *testing.T) { testRoundTrip(t, input) }) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 36.9K bytes - Viewed (0) -
src/crypto/internal/mlkem768/mlkem768_test.go
exp := new(big.Int).Exp(ΞΆ, big.NewInt(int64(BitRev7(uint8(k)))*2+1), q) if big.NewInt(int64(gamma)).Cmp(exp) != 0 { t.Errorf("gammas[%d] = %v, expected %v", k, gamma, exp) } } } func TestRoundTrip(t *testing.T) { dk, err := GenerateKey() if err != nil { t.Fatal(err) } c, Ke, err := Encapsulate(dk.EncapsulationKey()) if err != nil { t.Fatal(err) } Kd, err := Decapsulate(dk, c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 15:27:18 UTC 2024 - 10.3K bytes - Viewed (0) -
pkg/api/testing/unstructured_test.go
t.Errorf("FromUnstructured failed: %v", err) return } if !apiequality.Semantic.DeepEqual(item, newObj) { t.Errorf("Object changed, diff: %v", cmp.Diff(item, newObj)) } } func TestRoundTrip(t *testing.T) { for gvk := range legacyscheme.Scheme.AllKnownTypes() { if nonRoundTrippableTypes.Has(gvk.Kind) { continue } if gvk.Version == runtime.APIVersionInternal { continue }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 16.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/converter_test.go
if err != nil { t.Errorf("FromUnstructured failed: %v", err) return } if !reflect.DeepEqual(item, newObj) { t.Errorf("Object changed, diff: %v", cmp.Diff(item, newObj)) } } func TestRoundTrip(t *testing.T) { intVal := int64(42) testCases := []struct { obj interface{} }{ { obj: &unstructured.UnstructuredList{ Object: map[string]interface{}{ "kind": "List", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 11 16:02:13 UTC 2023 - 22.9K bytes - Viewed (0)