Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 537 for logf (0.04 sec)

  1. src/cmd/vet/vet_test.go

    	out, _ := cmd.CombinedOutput()
    	return string(out) == "true\n"
    }
    
    func errchk(c *exec.Cmd, files []string, t *testing.T) {
    	output, err := c.CombinedOutput()
    	if _, ok := err.(*exec.ExitError); !ok {
    		t.Logf("vet output:\n%s", output)
    		t.Fatal(err)
    	}
    	fullshort := make([]string, 0, len(files)*2)
    	for _, f := range files {
    		fullshort = append(fullshort, f, filepath.Base(f))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr_test.go

    		},
    		{
    			input:     FromString("#%"),
    			expectErr: true,
    		},
    		{
    			input:     FromString("90"),
    			expectErr: true,
    		},
    	}
    
    	for i, test := range tests {
    		t.Logf("test case %d", i)
    		value, err := GetScaledValueFromIntOrPercent(&test.input, test.total, test.roundUp)
    		if test.expectErr && err == nil {
    			t.Errorf("expected error, but got none")
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:09 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  3. pkg/volume/util/nestedpendingoperations/nestedpendingoperations_test.go

    		time.Duration(initialOperationWaitTimeShort),
    		func() (bool, error) {
    			err := grm.Run(volumeName, EmptyUniquePodName, EmptyNodeName, volumetypes.GeneratedOperations{OperationFunc: operation2})
    			if err != nil {
    				t.Logf("Warning: NestedPendingOperations failed with %v. Will retry.", err)
    				return false, nil
    			}
    			return true, nil
    		},
    	)
    
    	// Assert
    	if err2 != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 26 01:29:17 UTC 2022
    - 36.1K bytes
    - Viewed (0)
  4. src/net/listen_test.go

    	switch runtime.GOOS {
    	case "plan9":
    		t.Skipf("not supported on %s", runtime.GOOS)
    	}
    
    	for _, tt := range tcpListenerTests {
    		if !testableListenArgs(tt.network, JoinHostPort(tt.address, "0"), "") {
    			t.Logf("skipping %s test", tt.network+" "+tt.address)
    			continue
    		}
    
    		ln1, err := Listen(tt.network, JoinHostPort(tt.address, "0"))
    		if err != nil {
    			t.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  5. pkg/kubelet/prober/prober_manager_test.go

    			_, exists := m.getWorker(w.podUID, w.containerName, w.probeType)
    			return !exists, nil
    		}
    		if exited, _ := condition(); exited {
    			continue // Already exited, no need to poll.
    		}
    		t.Logf("Polling %v", w)
    		if err := wait.Poll(interval, wait.ForeverTestTimeout, condition); err != nil {
    			return err
    		}
    	}
    
    	return nil
    }
    
    // Wait for the given workers to exit & clean up.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  6. src/cmd/go/internal/script/cmds.go

    					beforeArgs = " "
    				}
    				s.Logf("[background] %s%s%s\n", bg.name, beforeArgs, quoteArgs(bg.args))
    
    				if stdout != "" {
    					s.Logf("[stdout]\n%s", stdout)
    					stdouts = append(stdouts, stdout)
    				}
    				if stderr != "" {
    					s.Logf("[stderr]\n%s", stderr)
    					stderrs = append(stderrs, stderr)
    				}
    				if err != nil {
    					s.Logf("[%v]\n", err)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  7. src/net/dial_test.go

    				// has been observed to fail with EADDRINUSE when dialing from an IPv6
    				// local address to an IPv4 remote address.
    				t.Logf("%s %v->%s: got %v; want %v", tt.network, tt.laddr, tt.raddr, err, tt.error)
    				t.Logf("(spurious EADDRINUSE ignored on freebsd: see https://golang.org/issue/34264)")
    			} else {
    				t.Errorf("%s %v->%s: got %v; want %v", tt.network, tt.laddr, tt.raddr, err, tt.error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  8. pkg/credentialprovider/plugin/config_test.go

    				t.Fatal(err)
    			}
    
    			if err == nil && testcase.expectErr {
    				t.Error("expected error but got none")
    			}
    
    			if !reflect.DeepEqual(authConfig, testcase.config) {
    				t.Logf("actual auth config: %#v", authConfig)
    				t.Logf("expected auth config: %#v", testcase.config)
    				t.Error("credential provider config did not match")
    			}
    		})
    	}
    }
    
    func Test_validateCredentialProviderConfig(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 09 14:24:11 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/gen_test.go

    			thisMatches := matchesPolicyRule(digest, rule)
    			if toMatch {
    				if testDebugLogs {
    					t.Logf("Added matching digest %#+v", digest)
    				}
    				if !thisMatches {
    					t.Errorf("Fail in check: rule %s does not match digest %#+v", fcfmt.Fmt(rule), digest)
    				}
    			} else {
    				if testDebugLogs {
    					t.Logf("Added skipping digest %#+v", digest)
    				}
    				if thisMatches {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 24.8K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/gcimporter_test.go

    	cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "compile", "-p", pkgpath, "-D", "testdata", "-importcfg", importcfgfile, "-o", outname, filename)
    	cmd.Dir = dirname
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Logf("%s", out)
    		t.Fatalf("go tool compile %s failed: %s", filename, err)
    	}
    	return outname
    }
    
    func testPath(t *testing.T, path, srcDir string) *types.Package {
    	t0 := time.Now()
    	fset := token.NewFileSet()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top