Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for defa (8.15 sec)

  1. cni/pkg/nodeagent/podcgroupns_test.go

    		Namespace: "bar",
    		UID:       types.UID("863b91d4-4b68-4efa-917f-4b560e3e86aa"),
    	}}
    	podUIDNetns, err := n.FindNetnsForPods(map[types.UID]*corev1.Pod{
    		pod.UID: pod,
    	})
    	if err != nil {
    		panic(err)
    	}
    	defer podUIDNetns.Close()
    
    	if len(podUIDNetns) == 0 {
    		t.Fatal("expected to find pod netns")
    	}
    
    	expectedUID := "863b91d4-4b68-4efa-917f-4b560e3e86aa"
    	if podUIDNetns[expectedUID] == (WorkloadInfo{}) {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Apr 12 21:47:31 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/net_test.go

    		Namespace: "bar",
    		UID:       types.UID("863b91d4-4b68-4efa-917f-4b560e3e86aa"),
    	}
    	pod := &corev1.Pod{ObjectMeta: podMeta}
    
    	fixture.ipsetDeps.On("listEntriesByIP",
    		"foo-v4",
    	).Return([]netip.Addr{}, nil)
    
    	err := netServer.ConstructInitialSnapshot([]*corev1.Pod{pod})
    	assert.NoError(t, err)
    	if fixture.podNsMap.Get("863b91d4-4b68-4efa-917f-4b560e3e86aa") == nil {
    		t.Fatal("expected pod to be in cache")
    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)
  3. cmd/object-api-multipart_test.go

    		// Valid object and bucket names but non-existent bucket.
    		{bucketName: "abc", objName: "def", uploadID: resN.UploadID, PartID: 1, expectedError: fmt.Errorf("%s", "Bucket not found: abc")},
    		// Test Case - 7.
    		// Existing bucket, but using a bucket on which NewMultipartUpload is not Initiated.
    		{bucketName: "unused-bucket", objName: "def", uploadID: "xyz", PartID: 1, expectedError: fmt.Errorf("%s", "Invalid upload id xyz")},
    		// Test Case - 8.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/lex/input.go

    	if tok != scanner.Ident {
    		in.expectText("expected identifier after '#'")
    	}
    	if !in.enabled() {
    		// Can only start including again if we are at #else or #endif but also
    		// need to keep track of nested #if[n]defs.
    		// We let #line through because it might affect errors.
    		switch in.Stack.Text() {
    		case "else", "endif", "ifdef", "ifndef", "line":
    			// Press on.
    		default:
    			return false
    		}
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  5. tests/migrate_test.go

    	if DB.Dialector.Name() != "mysql" {
    		t.Skip()
    	}
    
    	type MyTable struct {
    		Def string `gorm:"size:512;index:idx_def,unique"`
    		Abc string `gorm:"size:65000000"`
    	}
    
    	DB.Migrator().DropTable("my_tables")
    
    	sql := "CREATE TABLE `my_tables` (`def` varchar(512),`abc` longtext,UNIQUE INDEX `idx_def` (`def`))"
    	if err := DB.Exec(sql).Error; err != nil {
    		t.Errorf("Failed, got error: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Mar 18 11:24:16 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/parse.go

    	switch word {
    	case "TEXT":
    		// Defines text symbol in operands[0].
    		if len(operands) > 0 {
    			p.start(operands[0])
    			if name, abi, ok := p.funcAddress(); ok {
    				fmt.Fprintf(w, "def %s %s\n", name, abi)
    			}
    		}
    		return
    	case "GLOBL", "PCDATA":
    		// No text definitions or symbol references.
    	case "DATA", "FUNCDATA":
    		// For DATA, operands[0] is defined symbol.
    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)
  7. cmd/erasure-server-pool.go

    		//
    		// import org.apache.spark.sql.SparkSession
    		// import org.apache.spark.sql.types.{IntegerType, StringType, StructField, StructType}
    		// object SparkJSONRead {
    		//   def main(args: Array[String]): Unit = {
    		//     val spark:SparkSession = SparkSession.builder()
    		//       .appName("SparkByExample")
    		//       .master("local[1]").getOrCreate()
    		//
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  8. src/bufio/scan_test.go

    		}
    		err := s.Err()
    		if err != nil {
    			t.Errorf("#%d: %v", n, err)
    		}
    	}
    }
    
    var wordScanTests = []string{
    	"",
    	" ",
    	"\n",
    	"a",
    	" a ",
    	"abc def",
    	" abc def ",
    	" abc\tdef\nghi\rjkl\fmno\vpqr\u0085stu\u00a0\n",
    }
    
    // Test that the word splitter returns the same data as strings.Fields.
    func TestScanWords(t *testing.T) {
    	for n, test := range wordScanTests {
    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)
  9. misc/ios/go_ios_exec.go

    	sig = sigs.GetSignalAtIndex(i)
    	sigs.SetShouldStop(sig, False)
    	sigs.SetShouldNotify(sig, False)
    
    event = lldb.SBEvent()
    running = False
    prev_handler = None
    
    def signal_handler(signal, frame):
    	process.Signal(signal)
    
    def run_program():
    	# Forward SIGQUIT to the program.
    	prev_handler = signal.signal(signal.SIGQUIT, signal_handler)
    	# Tell the Go driver that the program is running and should not be retried.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    				if !ok {
    					continue
    				}
    				if ts.Name.Name == t.Name {
    					return p.hasPointer(f, ts.Type, top)
    				}
    			}
    		}
    		if def := typedef[t.Name]; def != nil {
    			return p.hasPointer(f, def.Go, top)
    		}
    		if t.Name == "string" {
    			return !top
    		}
    		if t.Name == "error" {
    			return true
    		}
    		if goTypes[t.Name] != nil {
    			return false
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top