Search in sources :

Example 1 with CustomArgv

use of com.google.devtools.build.lib.analysis.actions.CustomCommandLine.CustomArgv in project bazel by bazelbuild.

the class CustomCommandLineTest method testCustomArgs.

@Test
public void testCustomArgs() {
    CustomCommandLine cl = CustomCommandLine.builder().add(new CustomArgv() {

        @Override
        public String argv() {
            return "--arg";
        }
    }).build();
    assertEquals(ImmutableList.of("--arg"), cl.arguments());
}
Also used : CustomCommandLine(com.google.devtools.build.lib.analysis.actions.CustomCommandLine) CustomArgv(com.google.devtools.build.lib.analysis.actions.CustomCommandLine.CustomArgv) Test(org.junit.Test)

Aggregations

CustomCommandLine (com.google.devtools.build.lib.analysis.actions.CustomCommandLine)1 CustomArgv (com.google.devtools.build.lib.analysis.actions.CustomCommandLine.CustomArgv)1 Test (org.junit.Test)1