Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3e9964

Browse files
committed
set up basic testing file (not sure what to add yet)
1 parent c555f2f commit f3e9964

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cli/jail_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package cli_test
2+
3+
import (
4+
"testing"
5+
6+
"github.com/coder/coder/v2/cli/clitest"
7+
)
8+
9+
// Actually testing the functionality of coder/jail takes place in the
10+
// coder/jail repo, since it's a dependency of coder.
11+
// Here we want to test basically that integrating it as a subcommand doesn't break anything.
12+
func TestJailSubcommand(t *testing.T) {
13+
_, _ = clitest.New(t, "jail", "--help")
14+
}

0 commit comments

Comments
 (0)