- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 114 for parsing (0.19 sec)
-
cmd/streaming-signature-v4_test.go
} if !bytes.Equal(chunkSignature, tt.chunkSignature) { t.Errorf("Test %d: Expected %s, got %s", i+1, string(tt.chunkSignature), string(chunkSignature)) } } } // Test parsing s3 chunk extension. func TestParseS3ChunkExtension(t *testing.T) { type testCase struct { buf []byte chunkSize []byte chunkSign []byte } tests := []testCase{ // Test - 1 valid case.
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 5.7K bytes - Viewed (0) -
cmd/xl-storage-format_test.go
} return xlMeta } // Compare the unmarshaled XLMetaV1 with the one obtained from jsoniter parsing. func compareXLMetaV1(t *testing.T, unMarshalXLMeta, jsoniterXLMeta xlMetaV1Object) { // Start comparing the fields of xlMetaV1Object obtained from jsoniter parsing with one parsed using json unmarshalling. if unMarshalXLMeta.Version != jsoniterXLMeta.Version {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Feb 22 06:26:06 GMT 2024 - 17.6K bytes - Viewed (0) -
internal/bucket/replication/replication_test.go
t.Fatalf("%d: Expected '%v' during parsing but got '%v'", i+1, tc.expectedParsingErr, err) } if err == nil && tc.expectedParsingErr != nil { t.Fatalf("%d: Expected '%v' during parsing but got '%v'", i+1, tc.expectedParsingErr, err) } if tc.expectedParsingErr != nil { // We already expect a parsing error, // no need to continue this test. return }
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Mar 28 17:44:56 GMT 2024 - 32.5K bytes - Viewed (0) -
internal/bucket/versioning/error.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package versioning import ( "fmt" ) // Error is the generic type for any error happening during tag // parsing. type Error struct { err error } // Errorf - formats according to a format specifier and returns // the string as a value that satisfies error of type tagging.Error
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.3K bytes - Viewed (0) -
src/archive/tar/strconv_test.go
for _, v := range vectors { var p parser got := p.parseNumeric([]byte(v.in)) ok := (p.err == nil) if ok != v.ok { if v.ok { t.Errorf("parseNumeric(%q): got parsing failure, want success", v.in) } else { t.Errorf("parseNumeric(%q): got parsing success, want failure", v.in) } } if ok && got != v.want { t.Errorf("parseNumeric(%q): got %d, want %d", v.in, got, v.want) } } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Feb 09 05:28:50 GMT 2021 - 14K bytes - Viewed (0) -
src/archive/tar/strconv.go
// appropriate length. func formatPAXRecord(k, v string) (string, error) { if !validPAXRecord(k, v) { return "", ErrHeader } const padding = 3 // Extra padding for ' ', '=', and '\n' size := len(k) + len(v) + padding size += len(strconv.Itoa(size)) record := strconv.Itoa(size) + " " + k + "=" + v + "\n" // Final adjustment if adding size field increased the record size.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 01 14:28:42 GMT 2023 - 9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/operand_test.go
func newParser(goarch string) *Parser { architecture, ctxt := setArch(goarch) return NewParser(ctxt, architecture, nil) } // tryParse executes parse func in panicOnError=true context. // parse is expected to call any parsing methods that may panic. // Returns error gathered from recover; nil if no parse errors occurred. // // For unexpected panics, calls t.Fatal. func tryParse(t *testing.T, parse func()) (err error) { panicOnError = true
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 18:31:05 GMT 2023 - 23.9K bytes - Viewed (0) -
internal/amztime/parse.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. // Package amztime implements AWS specific time parsing and deviations package amztime import ( "errors" "net/http" "time" ) // Supported amz date formats. var amzDateFormats = []string{ // Do not change this order, x-amz-date format is usually in
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 2.5K bytes - Viewed (0) -
internal/s3select/simdj/errors.go
} func (err *s3Error) Error() string { return err.message } func errJSONParsingError(err error) *s3Error { return &s3Error{ code: "JSONParsingError", message: fmt.Sprintf("Encountered an error parsing the JSON file: %v. Check the file and try again.", err), statusCode: 400, cause: err, }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.4K bytes - Viewed (0) -
cmd/api-resources_test.go
}, } for i, testCase := range testCases { prefix, marker, delimiter, maxKeys, encodingType, argsErr := getListObjectsV1Args(testCase.values) if argsErr != ErrNone { t.Errorf("Test %d: argument parsing failed, got %v", i+1, argsErr) } if prefix != testCase.prefix { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.prefix, prefix) } if marker != testCase.marker {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Fri Apr 23 18:58:53 GMT 2021 - 7.1K bytes - Viewed (0)