Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCheckErr (0.24 sec)

  1. cmd/kubeadm/app/util/error_test.go

    package util
    
    import (
    	"testing"
    
    	"github.com/pkg/errors"
    )
    
    type pferror struct{}
    
    func (p *pferror) Preflight() bool { return true }
    func (p *pferror) Error() string   { return "" }
    func TestCheckErr(t *testing.T) {
    	var codeReturned int
    	errHandle := func(err string, code int) {
    		codeReturned = code
    	}
    
    	var tests = []struct {
    		name     string
    		e        error
    		expected int
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 04 08:41:27 UTC 2021
    - 2.4K bytes
    - Viewed (0)
Back to top