Argument
|
- |
10 |
(constructor)
|
- |
3 |
should set name
|
- |
|
should set description
|
- |
|
should set default value
|
- |
|
get*name
|
- |
1 |
should return name
|
- |
|
get*description
|
- |
1 |
should return description
|
- |
|
get*defaultValue
|
- |
1 |
should return default value
|
- |
|
#compare
|
- |
4 |
should compare equal arguments
|
- |
|
should compare lesser strings
|
- |
|
should compare greater strings
|
- |
|
should ignore case in comparision
|
- |
|
Help
|
- |
48 |
(constructor)
|
- |
2 |
should have correct title
|
- |
|
should have correct description
|
- |
|
.registerTask
|
- |
7 |
should register a task without dependecies or arguments
|
- |
|
should increase max name length if longer name
|
- |
|
should not increase max name length if not a longer name
|
- |
|
should error on unregistered dependency
|
- |
|
should add registered dependency
|
- |
|
should error on unregistered argument
|
- |
|
should add registered argument
|
- |
|
.registerArgument
|
- |
2 |
should add argument
|
- |
|
should update max label length on longer name
|
- |
|
get*helpTask
|
- |
5 |
should return a function
|
- |
|
should return function that prints header
|
- |
|
should return function that prints task list
|
- |
|
should return function that prints arguments list
|
- |
|
should return function that prints task details
|
- |
|
._printHeader
|
- |
4 |
should print title if it is provided
|
- |
|
should print description if it is provided
|
- |
|
should print usage
|
- |
|
should not print title or description if they are not provided
|
- |
|
._printTaskList
|
- |
5 |
should not print anything if there are no tasks
|
- |
|
should print single task
|
- |
|
should print task column with complete row
|
- |
|
should print task column with incomplete row
|
- |
|
should print task column with second incomplete row
|
- |
|
._printArgumentsList
|
- |
5 |
should not print anything if there are no tasks
|
- |
|
should print argument with no description or default value
|
- |
|
should print argument with short description
|
- |
|
should print argument with wrapping description (or newlines)
|
- |
|
should print default value if set
|
- |
|
._printTaskDetails
|
- |
4 |
should not print anything on no tasks
|
- |
|
should print task with short description
|
- |
|
should print task with long description
|
- |
|
should print task arguments and dependecies
|
- |
|
._getTasksList
|
- |
1 |
should return a sorted list of tasks
|
- |
|
._getTaskNamesList
|
- |
1 |
should return a sorted list of task names
|
- |
|
._getMaxTaskNameLength
|
- |
1 |
should return length of longest name
|
- |
|
._getArgumentsList
|
- |
1 |
should return a sorted list of arguments
|
- |
|
._getArgumentsNamesList
|
- |
1 |
should return a sorted list of argument names
|
- |
|
._getMaxArgumentNameLength
|
- |
1 |
should return a sorted list of argument names
|
- |
|
#_printTaskDependencies
|
- |
4 |
should print nothing on empty dependecies
|
- |
|
should print single dependency
|
- |
|
should print exactly a single row of dependencies
|
- |
|
should print multiple rows of dependencies
|
- |
|
#_printTaskArguments
|
- |
4 |
should print nothing on empty arguments
|
- |
|
should print single dependency
|
- |
|
should print exactly a single row of dependencies
|
- |
|
should print multiple rows of dependencies
|
- |
|
Task
|
- |
17 |
(constructor)
|
- |
4 |
should set name
|
- |
|
should set description
|
- |
|
should have default for dependencies
|
- |
|
should have default for arguments
|
- |
|
get*name
|
- |
1 |
should return the name
|
- |
|
get*description
|
- |
1 |
should return the description
|
- |
|
get*dependencies
|
- |
1 |
should return sorted dependencies
|
- |
|
get*dependenciesNames
|
- |
1 |
should return sorted dependencies names
|
- |
|
get*arguments
|
- |
1 |
should return sorted arguments
|
- |
|
get*argumentsNames
|
- |
1 |
should return sorted arguments names
|
- |
|
.addArgument
|
- |
1 |
should add an argument
|
- |
|
.addDependency
|
- |
2 |
should add a dependency without arguments
|
- |
|
should add a dependency with arguments
|
- |
|
#compare
|
- |
4 |
should compare equal arguments
|
- |
|
should compare lesser strings
|
- |
|
should compare greater strings
|
- |
|
should ignore case in comparision
|
- |
|