Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for TestEmbedFiles (0.29 sec)

  1. src/cmd/go/testdata/script/list_json_fields.txt

    stdout '"TestEmbedPatterns": \['
    stdout '"XTestEmbedPatterns": \['
    # Test -json=<field> with *EmbedFiles fails due to broken file reference.
    ! go list -json=EmbedFiles
    stderr 'no matching files found'
    ! go list -json=TestEmbedFiles
    stderr 'no matching files found'
    ! go list -json=XTestEmbedFiles
    stderr 'no matching files found'
    cd ..
    
    [!git] skip
    
    # Test -json=<field> without Stale skips computing buildinfo
    cd repo
    exec git init
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 15:24:16 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/embed.txt

    # go list shows patterns and files
    go list -f '{{.EmbedPatterns}}'
    stdout '\[x\*t\*t\]'
    go list -f '{{.EmbedFiles}}'
    stdout '\[x.txt\]'
    go list -test -f '{{.TestEmbedPatterns}}'
    stdout '\[y\*t\*t\]'
    go list -test -f '{{.TestEmbedFiles}}'
    stdout '\[y.txt\]'
    go list -test -f '{{.XTestEmbedPatterns}}'
    stdout '\[z\*t\*t\]'
    go list -test -f '{{.XTestEmbedFiles}}'
    stdout '\[z.txt\]'
    
    # build embeds x.txt
    go build -x
    stderr 'x.txt'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 18:03:59 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/test.go

    			ptestErr = err
    			incomplete = true
    		}
    		if p1.Incomplete {
    			incomplete = true
    		}
    		p.TestImports[i] = p1.ImportPath
    		imports = append(imports, p1)
    	}
    	var err error
    	p.TestEmbedFiles, testEmbed, err = resolveEmbed(p.Dir, p.TestEmbedPatterns)
    	if err != nil {
    		ptestErr = &PackageError{
    			ImportStack: stk.Copy(),
    			Err:         err,
    		}
    		incomplete = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. src/cmd/go/internal/list/list.go

            EmbedPatterns      []string // //go:embed patterns
            EmbedFiles         []string // files matched by EmbedPatterns
            TestEmbedPatterns  []string // //go:embed patterns in TestGoFiles
            TestEmbedFiles     []string // files matched by TestEmbedPatterns
            XTestEmbedPatterns []string // //go:embed patterns in XTestGoFiles
            XTestEmbedFiles    []string // files matched by XTestEmbedPatterns
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. src/cmd/go/internal/load/pkg.go

    	TestGoFiles        []string `json:",omitempty"` // _test.go files in package
    	TestImports        []string `json:",omitempty"` // imports from TestGoFiles
    	TestEmbedPatterns  []string `json:",omitempty"` // //go:embed patterns
    	TestEmbedFiles     []string `json:",omitempty"` // files matched by TestEmbedPatterns
    	XTestGoFiles       []string `json:",omitempty"` // _test.go files outside package
    	XTestImports       []string `json:",omitempty"` // imports from XTestGoFiles
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  6. src/cmd/go/alldocs.go

    //	    EmbedPatterns      []string // //go:embed patterns
    //	    EmbedFiles         []string // files matched by EmbedPatterns
    //	    TestEmbedPatterns  []string // //go:embed patterns in TestGoFiles
    //	    TestEmbedFiles     []string // files matched by TestEmbedPatterns
    //	    XTestEmbedPatterns []string // //go:embed patterns in XTestGoFiles
    //	    XTestEmbedFiles    []string // files matched by XTestEmbedPatterns
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top