Home | History | Annotate | Download | only in options

Lines Matching defs:options

15 package com.google.caliper.options;
102 CaliperOptions options = ParsedOptions.from(new String[] {CLASS_NAME}, true);
104 assertEquals(CLASS_NAME, options.benchmarkClassName());
105 checkDefaults(options);
109 CaliperOptions options = ParsedOptions.from(new String[] {}, false);
111 assertNull(options.benchmarkClassName());
112 checkDefaults(options);
115 private void checkDefaults(CaliperOptions options) {
116 assertTrue(options.benchmarkMethodNames().isEmpty());
117 assertFalse(options.dryRun());
122 assertEquals(expectedInstruments, options.instrumentNames());
123 assertEquals(1, options.trialsPerScenario());
124 assertTrue(options.userParameters().isEmpty());
125 assertFalse(options.printConfiguration());
126 assertTrue(options.vmArguments().isEmpty());
127 assertEquals(0, options.vmNames().size());
147 CaliperOptions options = ParsedOptions.from(args, true);
149 assertEquals(CLASS_NAME, options.benchmarkClassName());
150 assertEquals(ImmutableSet.of("foo", "bar", "qux"), options.benchmarkMethodNames());
151 assertFalse(options.dryRun());
152 assertEquals(ImmutableSet.of("testInstrument"), options.instrumentNames());
153 assertEquals(new File("/path/to/some/dir"), options.caliperDirectory());
154 assertEquals(2, options.trialsPerScenario());
155 assertEquals(ShortDuration.of(15, SECONDS), options.timeLimit());
157 options.userParameters());
159 options.configProperties());
160 assertTrue(options.printConfiguration());
162 options.vmArguments());
164 String vmName = Iterables.getOnlyElement(options.vmNames());