Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for foo (0.17 sec)

  1. istioctl/pkg/util/handlers/handlers_test.go

    		wantPodName   string
    		wantNamespace string
    	}{
    		{
    			name:          "foo-abc.istio-system",
    			wantPodName:   "foo-abc",
    			wantNamespace: "istio-system",
    		},
    		{
    			name:          "foo-abc",
    			wantPodName:   "foo-abc",
    			wantNamespace: "test",
    		},
    		{
    			name:          "Deployment/foo.istio-system",
    			wantPodName:   "foo-abc",
    			wantNamespace: "istio-system",
    		},
    		{
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jun 09 18:17:49 GMT 2023
    - 6.6K bytes
    - Viewed (0)
  2. istioctl/pkg/workload/workload_test.go

    			args: strings.Split("group create --name foo --namespace bar --labels app=foo,bar=baz "+
    				" --annotations annotation=foobar --ports grpc=3550,http=8080 --serviceAccount test", " "),
    			expectedException: false,
    			expectedOutput:    customYAML,
    		},
    		{
    			description: "valid case - create full workload group with shortnames",
    			args: strings.Split("group create --name foo -n bar -l app=foo,bar=baz -p grpc=3550,http=8080"+
    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)
  3. src/cmd/cgo/internal/test/issue24161e2/main.go

      static CFDataRef SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error){return NULL;}
      #define kSecKeyAlgorithmECDSASignatureDigestX962SHA1 foo()
      static SecKeyAlgorithm foo(void){return NULL;}
    #endif
    */
    import "C"
    import (
    	"fmt"
    	"testing"
    )
    
    var _ C.CFStringRef
    
    func f1() {
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (1)
  4. cni/pkg/nodeagent/net_test.go

    	fakeIPSetDeps := ipset.FakeNLDeps()
    	set := ipset.IPSet{V4Name: "foo-v4", V6Name: "foo-v6", Prefix: "foo", Deps: fakeIPSetDeps}
    	ipProto := uint8(unix.IPPROTO_TCP)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v6",
    		netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece3:2f9b:3162"),
    		ipProto,
    		podUID,
    		true,
    	).Return(nil)
    
    	fakeIPSetDeps.On("addIP",
    		"foo-v6",
    		netip.MustParseAddr("e9ac:1e77:90ca:399f:4d6d:ece2:2f9b:3164"),
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  5. src/bytes/bytes_test.go

    				}
    			}
    		}
    	}
    }
    
    var indexTests = []BinOpTest{
    	{"", "", 0},
    	{"", "a", -1},
    	{"", "foo", -1},
    	{"fo", "foo", -1},
    	{"foo", "baz", -1},
    	{"foo", "foo", 0},
    	{"oofofoofooo", "f", 2},
    	{"oofofoofooo", "foo", 4},
    	{"barfoobarfoo", "foo", 3},
    	{"foo", "", 0},
    	{"foo", "o", 1},
    	{"abcABCabc", "A", 3},
    	// cases with one byte strings - test IndexByte and special case in Index()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  6. istioctl/pkg/wait/wait_test.go

    			wantException:    true,
    		},
    		{
    			execClientConfig: cannedResponseMap,
    			args:             strings.Split("--generation=1 virtual-service foo.default", " "),
    			wantException:    false,
    		},
    		{
    			execClientConfig: cannedResponseMap,
    			args:             strings.Split("--generation=1 VirtualService foo.default", " "),
    			wantException:    false,
    		},
    		{
    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. src/bytes/example_test.go

    }
    
    func ExampleEqualFold() {
    	fmt.Println(bytes.EqualFold([]byte("Go"), []byte("go")))
    	// Output: true
    }
    
    func ExampleFields() {
    	fmt.Printf("Fields are: %q", bytes.Fields([]byte("  foo bar  baz   ")))
    	// Output: Fields are: ["foo" "bar" "baz"]
    }
    
    func ExampleFieldsFunc() {
    	f := func(c rune) bool {
    		return !unicode.IsLetter(c) && !unicode.IsNumber(c)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  8. src/cmd/asm/internal/lex/lex_test.go

    	input string
    	error string
    }
    
    var badLexTests = []badLexTest{
    	{
    		"3 #define foo bar\n",
    		"'#' must be first item on line",
    	},
    	{
    		"#ifdef foo\nhello",
    		"unclosed #ifdef or #ifndef",
    	},
    	{
    		"#ifndef foo\nhello",
    		"unclosed #ifdef or #ifndef",
    	},
    	{
    		"#ifdef foo\nhello\n#else\nbye",
    		"unclosed #ifdef or #ifndef",
    	},
    	{
    		"#define A() A()\nA()",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/cni-watcher_test.go

    	valid := CNIPluginAddEvent{
    		Netns:        "/var/netns/foo",
    		PodName:      "pod-bingo",
    		PodNamespace: "funkyns",
    	}
    
    	payload, _ := json.Marshal(valid)
    
    	addEvent, err := processAddEvent(payload)
    
    	assert.NoError(t, err)
    	assert.Equal(t, valid, addEvent)
    }
    
    func TestProcessAddEventBadPayload(t *testing.T) {
    	valid := CNIPluginAddEvent{
    		Netns:        "/var/netns/foo",
    		PodName:      "pod-bingo",
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Thu May 02 21:29:40 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/test/issue24161e1/main.go

      static CFDataRef SecKeyCreateSignature(SecKeyRef key, SecKeyAlgorithm algorithm, CFDataRef dataToSign, CFErrorRef *error){return NULL;}
      #define kSecKeyAlgorithmECDSASignatureDigestX962SHA1 foo()
      static SecKeyAlgorithm foo(void){return NULL;}
    #endif
    */
    import "C"
    import (
    	"fmt"
    	"testing"
    )
    
    func f1() {
    	C.SecKeyCreateSignature(0, C.kSecKeyAlgorithmECDSASignatureDigestX962SHA1, 0, nil)
    }
    
    Go
    - Registered: Tue Mar 26 11:13:08 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 1K bytes
    - Viewed (0)
Back to top