Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    }
    
    -- pkg_test.go --
    package pkg
    
    import "runtime"
    
    func PrintFileForTest() {
    	_, file, _, _ := runtime.Caller(0)
    	println(file)
    }
    
    -- pkg_x_test.go --
    package pkg_test
    
    import (
    	"runtime"
    	"testing"
    
    	"example.com/pkg"
    )
    
    func TestMain(m *testing.M) {
    	pkg.PrintFile()
    	pkg.PrintFileForTest()
    	PrintFileInXTest()
    }
    
    func PrintFileInXTest() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 12 15:17:33 UTC 2021
    - 657 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_trimpath_main.txt

    	println(file)
    }
    
    -- main_test.go --
    package main
    
    import (
    	"runtime"
    	"testing"
    )
    
    func PrintFileForTest() {
    	_, file, _, _ := runtime.Caller(0)
    	println(file)
    }
    
    func TestMain(m *testing.M) {
    	PrintFile()
    	PrintFileForTest()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 12 15:17:33 UTC 2021
    - 477 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/test_trimpath_test_suffix.txt

    }
    
    -- pkg_x_test.go --
    package pkg_test_test
    
    import (
    	"runtime"
    	"testing"
    
    	"example.com/pkg_test"
    )
    
    func PrintFileForTest() {
    	_, file, _, _ := runtime.Caller(0)
    	println(file)
    }
    
    func TestMain(m *testing.M) {
    	pkg_test.PrintFile()
    	PrintFileForTest()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 12 15:17:33 UTC 2021
    - 539 bytes
    - Viewed (0)
Back to top