Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 155 for correctly (0.26 sec)

  1. istioctl/pkg/util/proto/messageslice.go

    import (
    	"bytes"
    
    	"google.golang.org/protobuf/proto"
    
    	"istio.io/istio/pkg/util/protomarshal"
    )
    
    // MessageSlice allows us to marshal slices of protobuf messages like clusters/listeners/routes/endpoints correctly
    type MessageSlice []proto.Message
    
    // MarshalJSON handles marshaling of slices of proto messages
    func (pSlice MessageSlice) MarshalJSON() ([]byte, error) {
    	buffer := bytes.NewBufferString("[")
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Oct 19 21:53:59 GMT 2021
    - 1.3K bytes
    - Viewed (0)
  2. cmd/metacache-walk.go

    				entries[i] = ""
    				continue
    			}
    			if hasSuffixByte(entry, SlashSeparatorChar) {
    				if strings.HasSuffix(entry, globalDirSuffixWithSlash) {
    					// Add without extension so it is sorted correctly.
    					entry = strings.TrimSuffix(entry, globalDirSuffixWithSlash) + slashSeparator
    					dirObjects[entry] = struct{}{}
    					entries[i] = entry
    					continue
    				}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
  3. cmd/signature-v4.go

    func getSignature(signingKey []byte, stringToSign string) string {
    	return hex.EncodeToString(sumHMAC(signingKey, []byte(stringToSign)))
    }
    
    // Check to see if Policy is signed correctly.
    func doesPolicySignatureMatch(formValues http.Header) (auth.Credentials, APIErrorCode) {
    	// For SignV2 - Signature field will be valid
    	if _, ok := formValues[xhttp.AmzSignatureV2]; ok {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  4. cmd/utils_test.go

    		ceiling := ceilFrac(testCase.numerator, testCase.denominator)
    		if ceiling != testCase.ceiling {
    			t.Errorf("Case %d: Unexpected result: %d", i, ceiling)
    		}
    	}
    }
    
    // Test if isErrIgnored works correctly.
    func TestIsErrIgnored(t *testing.T) {
    	errIgnored := fmt.Errorf("ignored error")
    	testCases := []struct {
    		err     error
    		ignored bool
    	}{
    		{
    			err:     nil,
    			ignored: false,
    		},
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Feb 23 21:28:14 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. src/bufio/scan.go

    	if width > 1 {
    		// It's a valid encoding. Width cannot be one for a correctly encoded
    		// non-ASCII rune.
    		return width, data[0:width], nil
    	}
    
    	// We know it's an error: we have width==1 and implicitly r==utf8.RuneError.
    	// Is the error because there wasn't a full rune to be decoded?
    	// FullRune distinguishes correctly between erroneous and incomplete encodings.
    	if !atEOF && !utf8.FullRune(data) {
    		// Incomplete; get more bytes.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. src/bytes/buffer.go

    type Buffer struct {
    	buf      []byte // contents are the bytes buf[off : len(buf)]
    	off      int    // read at &buf[off], write at &buf[len(buf)]
    	lastRead readOp // last read operation, so that Unread* can work correctly.
    }
    
    // The readOp constants describe the last action performed on
    // the buffer, so that UnreadRune and UnreadByte can check for
    // invalid usage. opReadRuneX constants are chosen such that
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  7. cmd/erasure-healing_test.go

    		t.Fatalf("part.1 not healed correctly")
    	}
    
    	partReconstructed, err = secondDisk.ReadAll(context.Background(), bucket, pathJoin(object, fi.DataDir, "part.1"))
    	if err != nil {
    		t.Fatalf("Failed to read a file - %v", err)
    	}
    
    	if !reflect.DeepEqual(part1Disk2Origin, partReconstructed) {
    		t.Fatalf("part.1 not healed correctly")
    	}
    }
    
    // Tests healing of object.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  8. internal/s3select/sql/analysis.go

    )
    
    // qProp contains analysis info about an SQL term.
    type qProp struct {
    	isAggregation, isRowFunc bool
    
    	err error
    }
    
    // `combine` combines a pair of `qProp`s, so that errors are
    // propagated correctly, and checks that an aggregation is not being
    // combined with a row-function term.
    func (p *qProp) combine(q qProp) {
    	switch {
    	case p.err != nil:
    		// Do nothing
    	case q.err != nil:
    		p.err = q.err
    	default:
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Dec 23 07:19:11 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  9. src/bufio/scan_test.go

    			t.Fatalf("white space property disagrees: %#U should be %t", r, unicode.IsSpace(r))
    		}
    	}
    }
    
    var scanTests = []string{
    	"",
    	"a",
    	"¼",
    	"☹",
    	"\x81",   // UTF-8 error
    	"\uFFFD", // correctly encoded RuneError
    	"abcdefgh",
    	"abc def\n\t\tgh    ",
    	"abc¼☹\x81\uFFFD日本語\x82abc",
    }
    
    func TestScanByte(t *testing.T) {
    	for n, test := range scanTests {
    		buf := strings.NewReader(test)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  10. internal/disk/fdatasync_linux.go

    // unless that metadata is needed in order to allow a subsequent data retrieval
    // to  be  correctly  handled.   For example, changes to st_atime or st_mtime
    // (respectively, time of last access and time of last modification; see inode(7))
    // do not require flushing because they are not necessary for a subsequent data
    // read to be handled correctly. On the other hand, a change to the file size
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Sep 29 23:40:28 GMT 2021
    - 1.8K bytes
    - Viewed (0)
Back to top