diff options
author | EuAndreh <eu@euandre.org> | 2024-12-02 15:41:30 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-12-02 15:41:30 -0300 |
commit | ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1 (patch) | |
tree | 8e15b7188b153d8f85be7120f5370249286b6f17 /cmd/vartan/test.go | |
parent | Setup Makefile project structure with empty src/urubu.go source (diff) | |
download | urubu-ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1.tar.gz urubu-ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1.tar.xz |
Build and test existing code as is
Diffstat (limited to 'cmd/vartan/test.go')
-rw-r--r-- | cmd/vartan/test.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd/vartan/test.go b/cmd/vartan/test.go index 9bd88ff..73949e0 100644 --- a/cmd/vartan/test.go +++ b/cmd/vartan/test.go @@ -5,10 +5,10 @@ import ( "fmt" "os" - "github.com/nihei9/vartan/tester" - "github.com/spf13/cobra" + "tester" ) +/* func init() { cmd := &cobra.Command{ Use: "test <grammar file path> <test file path>|<test directory path>", @@ -19,8 +19,9 @@ func init() { } rootCmd.AddCommand(cmd) } +*/ -func runTest(cmd *cobra.Command, args []string) error { +func runTest(args []string) error { gram, _, err := readGrammar(args[0]) if err != nil { return fmt.Errorf("Cannot read a grammar: %w", err) |