Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for GO_PACKTEST_IS_PACK (0.15 sec)

  1. src/cmd/pack/pack_test.go

    	"strings"
    	"sync"
    	"testing"
    	"time"
    )
    
    // TestMain executes the test binary as the pack command if
    // GO_PACKTEST_IS_PACK is set, and runs the tests otherwise.
    func TestMain(m *testing.M) {
    	if os.Getenv("GO_PACKTEST_IS_PACK") != "" {
    		main()
    		os.Exit(0)
    	}
    
    	os.Setenv("GO_PACKTEST_IS_PACK", "1") // Set for subprocesses to inherit.
    	os.Exit(m.Run())
    }
    
    // packPath returns the path to the "pack" binary to run.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 04 16:27:35 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top