Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for runChecks (0.12 sec)

  1. cmd/kubeadm/app/preflight/checks.go

    			imagePullPolicy: cfg.NodeRegistration.ImagePullPolicy,
    			imagePullSerial: serialPull,
    		},
    	}
    	return RunChecks(checks, os.Stderr, ignorePreflightErrors)
    }
    
    // RunChecks runs each check, displays its warnings/errors, and once all
    // are processed will exit if any errors occurred.
    func RunChecks(checks []Checker, ww io.Writer, ignorePreflightErrors sets.Set[string]) error {
    	var errsBuffer bytes.Buffer
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 03 11:20:55 UTC 2024
    - 39.5K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/preflight/checks_test.go

    	}
    	for _, rt := range tokenTest {
    		buf := new(bytes.Buffer)
    		actual := RunChecks(rt.p, buf, sets.New[string]())
    		if (actual == nil) != rt.expected {
    			t.Errorf(
    				"failed RunChecks:\n\texpected: %t\n\t  actual: %t",
    				rt.expected,
    				(actual == nil),
    			)
    		}
    		if buf.String() != rt.output {
    			t.Errorf(
    				"failed RunChecks:\n\texpected: %s\n\t  actual: %s",
    				rt.output,
    				buf.String(),
    			)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  3. src/go/printer/printer_test.go

    }
    
    // checkEqual compares a and b.
    func checkEqual(aname, bname string, a, b []byte) error {
    	if bytes.Equal(a, b) {
    		return nil
    	}
    	return errors.New(string(diff.Diff(aname, a, bname, b)))
    }
    
    func runcheck(t *testing.T, source, golden string, mode checkMode) {
    	src, err := os.ReadFile(source)
    	if err != nil {
    		t.Error(err)
    		return
    	}
    
    	res, err := format(src, mode)
    	if err != nil {
    		t.Error(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top