MCPcopy
hub / github.com/tj/commander.js / getTestCases

Function getTestCases

tests/command.action.test.js:154–165  ·  view source on GitHub ↗
(arg)

Source from the content-addressed store, hash-verified

152 });
153
154 function getTestCases(arg) {
155 const withArguments = createTestCommand().arguments(arg);
156 const withArgument = createTestCommand().argument(arg);
157 const withAddArgument = createTestCommand().addArgument(
158 new commander.Argument(arg),
159 );
160 return [
161 ['.arguments', withArguments],
162 ['.argument', withArgument],
163 ['.addArgument', withAddArgument],
164 ];
165 }
166});

Callers 1

Calls 4

createTestCommandFunction · 0.90
argumentsMethod · 0.80
argumentMethod · 0.80
addArgumentMethod · 0.80

Tested by

no test coverage detected