...

Source file src/github.com/rogpeppe/go-internal/cmd/txtar-c/script_test.go

Documentation: github.com/rogpeppe/go-internal/cmd/txtar-c

     1  // Copyright 2018 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 main
     6  
     7  import (
     8  	"os"
     9  	"testing"
    10  
    11  	"github.com/rogpeppe/go-internal/testscript"
    12  )
    13  
    14  func TestMain(m *testing.M) {
    15  	os.Exit(testscript.RunMain(m, map[string]func() int{
    16  		"txtar-c": main1,
    17  	}))
    18  }
    19  
    20  func TestScripts(t *testing.T) {
    21  	testscript.Run(t, testscript.Params{
    22  		Dir: "testdata",
    23  	})
    24  }
    25  

View as plain text