(t *testing.T)
| 579 | } |
| 580 | |
| 581 | func TestSecondArg(t *testing.T) { |
| 582 | t.Parallel() |
| 583 | if got := secondArg(nil); got != "" { |
| 584 | t.Errorf("secondArg(nil) = %q, want empty", got) |
| 585 | } |
| 586 | if got := secondArg(&implantpb.Request{Args: []string{"one"}}); got != "" { |
| 587 | t.Errorf("secondArg(one arg) = %q, want empty", got) |
| 588 | } |
| 589 | if got := secondArg(&implantpb.Request{Args: []string{"one", "two"}}); got != "two" { |
| 590 | t.Errorf("secondArg = %q, want two", got) |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | func TestIsWindows(t *testing.T) { |
| 595 | t.Parallel() |
nothing calls this directly
no test coverage detected