1 2 3 4 5 6 7 8 9 10 11 12 13 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, " "))) }