Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,261 for checkDir (0.32 sec)

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

    		{"preflight error", &pferror{}, PreFlightExitCode},
    	}
    
    	for _, rt := range tests {
    		t.Run(rt.name, func(t *testing.T) {
    			codeReturned = 0
    			checkErr(rt.e, errHandle)
    			if codeReturned != rt.expected {
    				t.Errorf(
    					"failed checkErr:\n\texpected: %d\n\t  actual: %d",
    					rt.expected,
    					codeReturned,
    				)
    			}
    		})
    	}
    }
    
    func TestFormatErrMsg(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 04 08:41:27 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  2. src/go/types/assignments.go

    // type. context describes the context in which the assignment takes place.
    // Use T == nil to indicate assignment to an untyped blank identifier.
    // If the assignment check fails, x.mode is set to invalid.
    func (check *Checker) assignment(x *operand, T Type, context string) {
    	check.singleValue(x)
    
    	switch x.mode {
    	case invalid:
    		return // error reported before
    	case nilvalue:
    		assert(isTypes2)
    		// ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. src/go/types/version.go

    // is allowed to use version v. If the position is unknown, the specified
    // module version (Config.GoVersion) is used. If that version is invalid,
    // allowVersion returns true.
    func (check *Checker) allowVersion(at positioner, v goVersion) bool {
    	fileVersion := check.conf.GoVersion
    	if pos := at.Pos(); pos.IsValid() {
    		fileVersion = check.versions[check.fileFor(pos)]
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 23:12:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/alias.go

    }
    
    // NewAlias creates a new Alias type with the given type name and rhs.
    // rhs must not be nil.
    func NewAlias(obj *TypeName, rhs Type) *Alias {
    	alias := (*Checker)(nil).newAlias(obj, rhs)
    	// Ensure that alias.actual is set (#65455).
    	alias.cleanup()
    	return alias
    }
    
    // Obj returns the type name for the declaration defining the alias type a.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 5K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/directive/directive.go

    	return nil
    }
    
    type checker struct {
    	pass     *analysis.Pass
    	filename string
    	file     *ast.File // nil for non-Go file
    	inHeader bool      // in file header (before or adjoining package declaration)
    }
    
    func newChecker(pass *analysis.Pass, filename string, file *ast.File) *checker {
    	return &checker{
    		pass:     pass,
    		filename: filename,
    		file:     file,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/stmt.go

    			}
    		}
    	}
    }
    
    func (check *Checker) openScope(node syntax.Node, comment string) {
    	check.openScopeUntil(node, syntax.EndPos(node), comment)
    }
    
    func (check *Checker) openScopeUntil(node syntax.Node, end syntax.Pos, comment string) {
    	scope := NewScope(check.scope, node.Pos(), end, comment)
    	check.recordScope(node, scope)
    	check.scope = scope
    }
    
    func (check *Checker) closeScope() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/preflight/checks_test.go

    	var tokenTest = []struct {
    		p        []Checker
    		expected bool
    		output   string
    	}{
    		{[]Checker{}, true, ""},
    		{[]Checker{preflightCheckTest{"warning"}}, true, "\t[WARNING preflightCheckTest]: warning\n"}, // should just print warning
    		{[]Checker{preflightCheckTest{"error"}}, false, ""},
    		{[]Checker{preflightCheckTest{"test"}}, false, ""},
    		{[]Checker{DirAvailableCheck{Path: "/does/not/exist"}}, true, ""},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-java-base/src/integTest/groovy/org/gradle/api/plugins/DefaultJavaPluginConventionTest.groovy

        }
    
        def "default dirs"() {
            expect:
            checkDirs()
        }
    
        def "dynamic dirs"() {
            when:
            project.buildDir = project.file('mybuild')
    
            then:
            checkDirs()
        }
    
        private void checkDirs() {
            assert convention.docsDir == new File(project.buildDir, convention.docsDirName)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 20:25:05 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  9. src/net/http/filetransport_test.go

    package http
    
    import (
    	"io"
    	"os"
    	"path/filepath"
    	"testing"
    	"testing/fstest"
    )
    
    func checker(t *testing.T) func(string, error) {
    	return func(call string, err error) {
    		if err == nil {
    			return
    		}
    		t.Fatalf("%s: %v", call, err)
    	}
    }
    
    func TestFileTransport(t *testing.T) {
    	check := checker(t)
    
    	dname := t.TempDir()
    	fname := filepath.Join(dname, "foo.txt")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 17:07:12 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api.go

    // Package types2 declares the data types and implements
    // the algorithms for type-checking of Go packages. Use
    // Config.Check to invoke the type checker for a package.
    // Alternatively, create a new type checker with NewChecker
    // and invoke it incrementally by calling Checker.Files.
    //
    // Type-checking consists of several interdependent phases:
    //
    // Name resolution maps each identifier (syntax.Name) in the program to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top