Source file src/cmd/internal/fuzztest/script_test.go

     1  // Copyright 2025 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package fuzztest
     6  
     7  import (
     8  	"cmd/internal/script/scripttest"
     9  	"flag"
    10  	"internal/testenv"
    11  	"testing"
    12  )
    13  
    14  //go:generate go test cmd/internal/fuzztest -v -run=TestScript/README --fixreadme
    15  
    16  var fixReadme = flag.Bool("fixreadme", false, "if true, update README for script tests")
    17  
    18  func TestScript(t *testing.T) {
    19  	testenv.MustHaveGoBuild(t)
    20  	testenv.SkipIfShortAndSlow(t)
    21  	scripttest.RunToolScriptTest(t, nil, "testdata/script", *fixReadme)
    22  }
    23  

View as plain text