- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 1,057 for qDecode (0.11 sec)
-
src/encoding/ascii85/ascii85_test.go
dbuf := make([]byte, 4*len(p.encoded)) ndst, nsrc, err := Decode(dbuf, []byte(p.encoded), true) testEqual(t, "Decode(%q) = error %v, want %v", p.encoded, err, error(nil)) testEqual(t, "Decode(%q) = nsrc %v, want %v", p.encoded, nsrc, len(p.encoded)) testEqual(t, "Decode(%q) = ndst %v, want %v", p.encoded, ndst, len(p.decoded)) testEqual(t, "Decode(%q) = %q, want %q", p.encoded, string(dbuf[0:ndst]), p.decoded) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 15:46:20 UTC 2022 - 5.8K bytes - Viewed (0) -
src/unicode/utf16/utf16_test.go
out := Decode(tt.in) if out == nil { t.Errorf("Decode(%x) = nil", tt.in) } }) if allocs > 0 { t.Errorf("Decode allocated %v times", allocs) } } } func TestDecode(t *testing.T) { for _, tt := range decodeTests { out := Decode(tt.in) if !reflect.DeepEqual(out, tt.out) { t.Errorf("Decode(%x) = %x; want %x", tt.in, out, tt.out) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 07 19:08:48 UTC 2024 - 6.5K bytes - Viewed (0) -
pkg/api/testing/serialization_test.go
apiVersion: v1 kind: Pod metadata: creationTimestamp: 2018-08-30T14:10:58Z name: test spec: containers: null status: {}`) if obj, err := runtime.Decode(legacyscheme.Codecs.LegacyCodec(v1.SchemeGroupVersion), testYAML); err != nil { t.Fatalf("unable to decode yaml: %v", err) } else { if obj2, ok := obj.(*api.Pod); !ok { t.Fatalf("Got wrong type") } else {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 25 11:04:08 UTC 2023 - 19.3K bytes - Viewed (0) -
security/pkg/pki/util/crypto.go
// trailing newline characters removed func PemCertBytestoString(caCerts []byte) []string { certs := []string{} var cert string pemBlock := caCerts for block, rest := pem.Decode(pemBlock); block != nil && len(block.Bytes) != 0; block, rest = pem.Decode(pemBlock) { if len(rest) == 0 { cert = strings.TrimPrefix(strings.TrimSuffix(string(pemBlock), "\n"), "\n") certs = append(certs, cert) break }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 13:00:07 UTC 2024 - 5.3K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/stream/EncodedStreamTest.groovy
* limitations under the License. */ package org.gradle.internal.stream import spock.lang.Specification class EncodedStreamTest extends Specification { def "can encode and decode an empty stream"() { def outputStream = new ByteArrayOutputStream() def encoder = new EncodedStream.EncodedOutput(outputStream) when: encoder.flush() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 2.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java
/** * Convert the input string to a code point. Accepts regular decimal numerals, hex strings, and * some symbolic names meaningful to humans. */ private static int decode(String userFriendly) { try { return Integer.decode(userFriendly); } catch (NumberFormatException ignored) { if (userFriendly.matches("(?i)(?:American|English|ASCII)")) { // 1-byte UTF-8 sequences - "American" ASCII text
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 5.3K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/Certificates.kt
} catch (nsee: NoSuchElementException) { throw IllegalArgumentException("failed to decode certificate", nsee) } catch (iae: IllegalArgumentException) { throw IllegalArgumentException("failed to decode certificate", iae) } catch (e: GeneralSecurityException) { throw IllegalArgumentException("failed to decode certificate", e) } } /** * Returns the certificate encoded in [PEM format][rfc_7468]. *
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/versioning/versioning_unstructured_test.go
in: v1UnstructuredDecodable, groupVersion: internalGVK.GroupVersion(), err: fmt.Errorf("no matching decode version"), }, suggestedConvertVersion: internalGVK.GroupVersion(), errFunc: func(err error) bool { return assert.Equal(t, err, fmt.Errorf("no matching decode version")) }, }, } for _, testCase := range testCases {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 08 14:55:24 UTC 2018 - 10.9K bytes - Viewed (0) -
src/internal/profile/proto_test.go
if err := unmarshal(tc.encoded, dest); err != nil { t.Errorf("failed decode %d: %v", i, err) continue } if got, want := dest.uint64s, tc.uint64s; !reflect.DeepEqual(got, want) { t.Errorf("failed decode uint64s %d, got %v, want %v", i, got, want) } if got, want := dest.int64s, tc.int64s; !reflect.DeepEqual(got, want) { t.Errorf("failed decode int64s %d, got %v, want %v", i, got, want) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 09 14:05:53 UTC 2022 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/helper.go
for _, decoder := range decoders { // TODO: Decode based on ContentType. obj, err := Decode(decoder, obj.Raw) if err != nil { if IsNotRegisteredError(err) { continue } return nil, err } return obj, nil } // could not decode, so leave the object as Unknown, but give the decoders the // chance to set Unknown.TypeMeta if it is available.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Dec 13 22:54:34 UTC 2023 - 8.4K bytes - Viewed (0)