--------------------------------------------------------------------------- Helper function tests ---------------------------------------------------------------------------
(t *testing.T)
| 232 | // --------------------------------------------------------------------------- |
| 233 | |
| 234 | func TestFirstArg_FromArgs(t *testing.T) { |
| 235 | req := &implantpb.Request{Args: []string{"a", "b"}} |
| 236 | if got := firstArg(req); got != "a" { |
| 237 | t.Errorf("firstArg from Args: got %q", got) |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | func TestFirstArg_FromInput(t *testing.T) { |
| 242 | req := &implantpb.Request{Input: "fallback"} |
nothing calls this directly
no test coverage detected