Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 58 of 58 for testFork (0.28 sec)

  1. pkg/controller/nodelifecycle/node_lifecycle_controller_test.go

    				Clientset: fake.NewSimpleClientset(&v1.PodList{Items: []v1.Pod{*testutil.NewPod("pod0", "node0")}}),
    			},
    			updateReactor: func() func(action testcore.Action) (bool, runtime.Object, error) {
    				i := 0
    				return func(action testcore.Action) (bool, runtime.Object, error) {
    					if action.GetVerb() == "update" && action.GetResource().Resource == "pods" && action.GetSubresource() == "status" {
    						i++
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 03:26:45 UTC 2024
    - 119K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/topologymanager/bitmask/bitmask_test.go

    		}
    		resultMask := And(bitMasks[0], bitMasks...)
    		if resultMask.String() != string(tc.andMask) {
    			t.Errorf("Expected mask to be %v, got %v", tc.andMask, resultMask)
    		}
    
    	}
    }
    
    func TestOr(t *testing.T) {
    	tcases := []struct {
    		name   string
    		masks  [][]int
    		orMask string
    	}{
    		{
    			name:   "Mask 01 OR mask 00",
    			masks:  [][]int{{0}, {}},
    			orMask: "01",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 09:45:09 UTC 2022
    - 16.2K bytes
    - Viewed (0)
  3. pkg/slices/slices_test.go

    			result := SortBy(tc.input, tc.extract)
    			if !reflect.DeepEqual(result, tc.expected) {
    				t.Fatalf("Expected: %+v, but got: %+v", tc.expected, result)
    			}
    		})
    	}
    }
    
    func TestSort(t *testing.T) {
    	testCases := []struct {
    		name     string
    		input    []int
    		expected []int
    	}{
    		{
    			name:     "Single_Element",
    			input:    []int{1},
    			expected: []int{1},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  4. pkg/kubelet/server/server_test.go

    				assert.Equal(t, testPodSandboxID, podSandboxID, "pod sandbox id")
    				// The port should be valid if it reaches here.
    				testPort, err := strconv.ParseInt(test.port, 10, 32)
    				require.NoError(t, err, "parse port")
    				assert.Equal(t, int32(testPort), port, "port")
    
    				if test.clientData != "" {
    					fromClient := make([]byte, 32)
    					n, err := stream.Read(fromClient)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  5. src/testing/testing.go

    				// So make 'no tests to run' a hard failure when testing package testing itself.
    				fmt.Print(chatty.prefix(), "FAIL: package testing must run tests\n")
    				testOk = false
    			}
    		}
    		anyFailed := !testOk || !exampleOk || !fuzzTargetsOk || !runBenchmarks(m.deps.ImportPath(), m.deps.MatchString, m.benchmarks)
    		if !anyFailed && race.Errors() > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  6. src/encoding/xml/marshal_test.go

    	for i := 0; i < 2; i++ {
    		wg.Add(1)
    		go func() {
    			Marshal(B{[]A{{}}})
    			wg.Done()
    		}()
    	}
    	wg.Wait()
    }
    
    func TestIsValidDirective(t *testing.T) {
    	testOK := []string{
    		"<>",
    		"< < > >",
    		"<!DOCTYPE '<' '>' '>' <!--nothing-->>",
    		"<!DOCTYPE doc [ <!ELEMENT doc ANY> <!ELEMENT doc ANY> ]>",
    		"<!DOCTYPE doc [ <!ELEMENT doc \"ANY> '<' <!E\" LEMENT '>' doc ANY> ]>",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  7. cmd/server_test.go

    	c.Assert(errorResponse.Code, code)
    	c.Assert(errorResponse.Message, description)
    	c.Assert(response.StatusCode, statusCode)
    }
    
    func runAllTests(suite *TestSuiteCommon, c *check) {
    	suite.SetUpSuite(c)
    	suite.TestCors(c)
    	suite.TestObjectDir(c)
    	suite.TestBucketPolicy(c)
    	suite.TestDeleteBucket(c)
    	suite.TestDeleteBucketNotEmpty(c)
    	suite.TestDeleteMultipleObjects(c)
    	suite.TestDeleteObject(c)
    	suite.TestNonExistentBucket(c)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 115.3K bytes
    - Viewed (0)
  8. tests/query_test.go

    		t.Fatalf("Build NOT condition, but got %v", result.Statement.SQL.String())
    	}
    }
    
    func TestOr(t *testing.T) {
    	dryDB := DB.Session(&gorm.Session{DryRun: true})
    
    	var count int64
    	result := dryDB.Model(&User{}).Or("role = ?", "admin").Count(&count)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed May 08 04:07:58 UTC 2024
    - 49.8K bytes
    - Viewed (0)
Back to top