diff options
author | Valery Piashchynski <[email protected]> | 2021-06-09 02:31:33 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-06-09 02:31:33 +0300 |
commit | 6103228ee951c7c8bf5d425471b7c440980c6044 (patch) | |
tree | 698c28d3af1814f49958455a6c518ed62032830f /plugins/server/command_test.go | |
parent | 4f3e16892479db4bd8280a46987f3105e46e5c96 (diff) |
- Update CI (add new tests)
- Add path scan with regex (find .php/.ph/.sh scripts). When found, try
to stat path for potential fix for the [file not exists problem]
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'plugins/server/command_test.go')
-rw-r--r-- | plugins/server/command_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/server/command_test.go b/plugins/server/command_test.go new file mode 100644 index 00000000..24051fba --- /dev/null +++ b/plugins/server/command_test.go @@ -0,0 +1,14 @@ +package server + +import ( + "strings" + "testing" + + "github.com/stretchr/testify/assert" +) + +func TestServerCommandChecker(t *testing.T) { + s := &Plugin{} + cmd1 := "php ../../tests/client.php" + assert.NoError(t, s.scanCommand(strings.Split(cmd1, " "))) +} |