(t *testing.T)
| 252 | } |
| 253 | |
| 254 | func TestSecondArg_Adapter(t *testing.T) { |
| 255 | req := &implantpb.Request{Args: []string{"a", "b"}} |
| 256 | if got := secondArg(req); got != "b" { |
| 257 | t.Errorf("secondArg: got %q", got) |
| 258 | } |
| 259 | if got := secondArg(&implantpb.Request{Args: []string{"a"}}); got != "" { |
| 260 | t.Errorf("secondArg single: got %q", got) |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | func TestIsWindows_Adapter(t *testing.T) { |
| 265 | if !isWindows("Windows") { |
nothing calls this directly
no test coverage detected