Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestGenerated (0.12 sec)

  1. src/internal/platform/zosarch_test.go

    	"os"
    	"os/exec"
    	"testing"
    	"text/template"
    )
    
    var flagFix = flag.Bool("fix", false, "if true, fix out-of-date generated files")
    
    // TestGenerated verifies that zosarch.go is up to date,
    // or regenerates it if the -fix flag is set.
    func TestGenerated(t *testing.T) {
    	testenv.MustHaveGoRun(t)
    
    	// Here we use 'go run cmd/dist' instead of 'go tool dist' in case the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 22 19:44:52 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. src/internal/platform/supported.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:generate go test . -run=^TestGenerated$ -fix
    
    package platform
    
    // An OSArch is a pair of GOOS and GOARCH values indicating a platform.
    type OSArch struct {
    	GOOS, GOARCH string
    }
    
    func (p OSArch) String() string {
    	return p.GOOS + "/" + p.GOARCH
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 07:50:22 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top