Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Exceptions (0.19 sec)

  1. cmd/api-utils.go

    		return false
    	}
    
    	switch c {
    	case '-', '_', '.', '/', '*':
    		return false
    	}
    	return true
    }
    
    // s3URLEncode is based on Golang's url.QueryEscape() code,
    // while considering some S3 exceptions:
    //   - Avoid encoding '/' and '*'
    //   - Force encoding of '~'
    func s3URLEncode(s string) string {
    	spaceCount, hexCount := 0, 0
    	for i := 0; i < len(s); i++ {
    		c := s[i]
    		if shouldEscape(c) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    	//fmt.Printf("Operand: %v\n", p.input)
    	if len(p.input) == 0 {
    		p.errorf("empty operand: cannot happen")
    		return
    	}
    	// General address (with a few exceptions) looks like
    	//	$sym±offset(SB)(reg)(index*scale)
    	// Exceptions are:
    	//
    	//	R1
    	//	offset
    	//	$offset
    	// Every piece is optional, so we scan left to right and what
    	// we discover tells us where we are.
    
    	// Prefix: $.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. istioctl/pkg/workload/workload_test.go

    	}
    
    	fErr := cmd.Execute()
    	output := out.String()
    
    	if c.expectedException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception, "+
    				"didn't get one, output was %q", output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception: %v", fErr)
    		}
    	}
    
    	if c.expectedOutput != "" && c.expectedOutput != output {
    		assert.Equal(t, c.expectedOutput, output)
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Mar 27 16:59:05 GMT 2024
    - 14.6K bytes
    - Viewed (0)
  4. internal/etag/etag.go

    // used to e.g. quickly compare objects or check whether
    // the content of an object has changed.
    //
    // In general, an S3 ETag is an MD5 checksum of the object
    // content. However, there are many exceptions to this rule.
    //
    // # Single-part Upload
    //
    // In case of a basic single-part PUT operation - without server
    // side encryption or object compression - the ETag of an object
    // is its content MD5.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Mar 10 21:09:36 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. istioctl/pkg/internaldebug/internal-debug_test.go

    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func init() {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  6. istioctl/pkg/wait/wait_test.go

    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  7. istioctl/pkg/metrics/metrics_test.go

    				&prometheus_model.Sample{Value: 4.95},
    			},
    		},
    	}
    	workload := "details"
    
    	sm, err := metrics(mockProm, workload, time.Minute)
    	if err != nil {
    		t.Fatalf("Unwanted exception %v", err)
    	}
    
    	var out bytes.Buffer
    	printHeader(&out)
    	printMetrics(&out, sm)
    	output := out.String()
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Oct 25 02:07:44 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  8. istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go

    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func init() {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. istioctl/pkg/proxyconfig/proxyconfig_test.go

    	}
    
    	if c.wantException {
    		if fErr == nil {
    			t.Fatalf("Wanted an exception for 'istioctl %s', didn't get one, output was %q",
    				strings.Join(c.args, " "), output)
    		}
    	} else {
    		if fErr != nil {
    			t.Fatalf("Unwanted exception for 'istioctl %s': %v", strings.Join(c.args, " "), fErr)
    		}
    	}
    }
    
    func TestPrintProxyConfigSummary(t *testing.T) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  10. src/cmd/api/main_test.go

    	}
    	for _, file := range nextFiles {
    		required = append(required, fileFeatures(file, true)...)
    	}
    	exception := fileFeatures(filepath.Join(testenv.GOROOT(t), "api/except.txt"), false)
    
    	if exitCode == 1 {
    		t.Errorf("API database problems found")
    	}
    	if !compareAPI(bw, features, required, exception) {
    		t.Errorf("API differences found")
    	}
    }
    
    // export emits the exported package features.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
Back to top