github.com/v2fly/tools@v0.100.0/internal/lsp/cmd/cmd_test.go (about)

     1  // Copyright 2019 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 cmd_test
     6  
     7  import (
     8  	"os"
     9  	"testing"
    10  
    11  	cmdtest "github.com/v2fly/tools/internal/lsp/cmd/test"
    12  	"github.com/v2fly/tools/internal/lsp/tests"
    13  	"github.com/v2fly/tools/internal/testenv"
    14  )
    15  
    16  func TestMain(m *testing.M) {
    17  	testenv.ExitIfSmallMachine()
    18  	os.Exit(m.Run())
    19  }
    20  
    21  func TestCommandLine(t *testing.T) {
    22  	cmdtest.TestCommandLine(t, "../testdata", tests.DefaultOptions)
    23  }