-
-
Save seeruk/0b256343d9d0ee2e8dff3b5e2eef4500 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ courtney -v (go list ./... | grep -v proto | grep -v vendor) | |
Running test: go test -coverpkg=github.com/eidolon/console,github.com/eidolon/console/parameters,github.com/eidolon/console/specification -coverprofile=/tmp/coverage922332813/1050c9e4b910f333ec5e7ac89a96c535.out -v | |
=== RUN TestDescribeApplication | |
=== RUN TestDescribeApplication/should_show_the_application_logo_if_there_is_one | |
=== RUN TestDescribeApplication/should_show_the_application_name | |
=== RUN TestDescribeApplication/should_show_the_application_version | |
=== RUN TestDescribeApplication/should_show_the_application_usage | |
=== RUN TestDescribeApplication/should_show_the_application_options_if_there_are_any | |
=== RUN TestDescribeApplication/should_show_the_application_commands_if_there_are_any | |
=== RUN TestDescribeApplication/should_not_show_the_commands_title_if_there_are_no_commands | |
=== RUN TestDescribeApplication/should_show_the_application_help_if_there_is_any | |
=== RUN TestDescribeApplication/should_not_show_the_help_title_if_there_is_no_application_help | |
--- PASS: TestDescribeApplication (0.00s) | |
--- PASS: TestDescribeApplication/should_show_the_application_logo_if_there_is_one (0.00s) | |
--- PASS: TestDescribeApplication/should_show_the_application_name (0.00s) | |
--- PASS: TestDescribeApplication/should_show_the_application_version (0.00s) | |
--- PASS: TestDescribeApplication/should_show_the_application_usage (0.00s) | |
--- PASS: TestDescribeApplication/should_show_the_application_options_if_there_are_any (0.00s) | |
--- PASS: TestDescribeApplication/should_show_the_application_commands_if_there_are_any (0.00s) | |
--- PASS: TestDescribeApplication/should_not_show_the_commands_title_if_there_are_no_commands (0.00s) | |
--- PASS: TestDescribeApplication/should_show_the_application_help_if_there_is_any (0.00s) | |
--- PASS: TestDescribeApplication/should_not_show_the_help_title_if_there_is_no_application_help (0.00s) | |
=== RUN TestNewApplication | |
--- PASS: TestNewApplication (0.00s) | |
=== RUN TestApplication | |
=== RUN TestApplication/Run() | |
=== RUN TestApplication/Run()/should_return_exit_code_2_if_no_command_was_asked_for | |
=== RUN TestApplication/Run()/should_return_exit_code_2_if_no_command_was_found | |
=== RUN TestApplication/Run()/should_return_exit_code_100_if_the_help_flag_is_set | |
=== RUN TestApplication/Run()/should_show_application_help_if_the_help_flag_is_set | |
=== RUN TestApplication/Run()/should_show_command_help_if_the_help_flag_is_set_when_running_a_command | |
=== RUN TestApplication/Run()/should_return_exit_code_0_if_a_command_was_found,_and_ran_OK | |
=== RUN TestApplication/Run()/should_return_exit_code_0_if_a_command_with_an_alias_was_found,_and_ran_OK | |
=== RUN TestApplication/Run()/should_return_exit_code_101_if_mapping_input_fails | |
=== RUN TestApplication/Run()/should_return_exit_code_102_if_the_command_execution_fails | |
=== RUN TestApplication/Run()/should_return_exit_code_set_on_output_during_execute_if_execution_succeeds | |
=== RUN TestApplication/Run()/should_return_exit_code_102_if_command_execution_fails_even_if_exitCode_is_set | |
=== RUN TestApplication/Run()/should_configure_the_application_definition | |
=== RUN TestApplication/Run()/should_work_with_sub-commands | |
=== RUN TestApplication/AddCommands() | |
=== RUN TestApplication/AddCommands()/should_work_when_adding_1_command | |
=== RUN TestApplication/AddCommands()/should_work_when_adding_no_commands | |
=== RUN TestApplication/AddCommands()/should_work_when_adding_more_than_1_command | |
=== RUN TestApplication/AddCommand() | |
--- PASS: TestApplication (0.00s) | |
--- PASS: TestApplication/Run() (0.00s) | |
--- PASS: TestApplication/Run()/should_return_exit_code_2_if_no_command_was_asked_for (0.00s) | |
--- PASS: TestApplication/Run()/should_return_exit_code_2_if_no_command_was_found (0.00s) | |
--- PASS: TestApplication/Run()/should_return_exit_code_100_if_the_help_flag_is_set (0.00s) | |
--- PASS: TestApplication/Run()/should_show_application_help_if_the_help_flag_is_set (0.00s) | |
--- PASS: TestApplication/Run()/should_show_command_help_if_the_help_flag_is_set_when_running_a_command (0.00s) | |
--- PASS: TestApplication/Run()/should_return_exit_code_0_if_a_command_was_found,_and_ran_OK (0.00s) | |
--- PASS: TestApplication/Run()/should_return_exit_code_0_if_a_command_with_an_alias_was_found,_and_ran_OK (0.00s) | |
--- PASS: TestApplication/Run()/should_return_exit_code_101_if_mapping_input_fails (0.00s) | |
--- PASS: TestApplication/Run()/should_return_exit_code_102_if_the_command_execution_fails (0.00s) | |
--- PASS: TestApplication/Run()/should_return_exit_code_set_on_output_during_execute_if_execution_succeeds (0.00s) | |
--- PASS: TestApplication/Run()/should_return_exit_code_102_if_command_execution_fails_even_if_exitCode_is_set (0.00s) | |
--- PASS: TestApplication/Run()/should_configure_the_application_definition (0.00s) | |
--- PASS: TestApplication/Run()/should_work_with_sub-commands (0.00s) | |
--- PASS: TestApplication/AddCommands() (0.00s) | |
--- PASS: TestApplication/AddCommands()/should_work_when_adding_1_command (0.00s) | |
--- PASS: TestApplication/AddCommands()/should_work_when_adding_no_commands (0.00s) | |
--- PASS: TestApplication/AddCommands()/should_work_when_adding_more_than_1_command (0.00s) | |
--- PASS: TestApplication/AddCommand() (0.00s) | |
=== RUN TestDescribeCommand | |
=== RUN TestDescribeCommand/should_return_command_usage_information | |
=== RUN TestDescribeCommand/should_include_the_command_name | |
=== RUN TestDescribeCommand/should_show_the_command_description | |
=== RUN TestDescribeCommand/should_return_command_help_if_there_is_some | |
=== RUN TestDescribeCommand/should_show_arguments_if_there_are_any | |
=== RUN TestDescribeCommand/should_show_optional_arguments_wrapped_in_brackets | |
=== RUN TestDescribeCommand/should_show_that_there_are_options_if_there_are_any | |
=== RUN TestDescribeCommand/should_show_that_there_are_sub-commands_if_there_are_any | |
--- PASS: TestDescribeCommand (0.00s) | |
--- PASS: TestDescribeCommand/should_return_command_usage_information (0.00s) | |
--- PASS: TestDescribeCommand/should_include_the_command_name (0.00s) | |
--- PASS: TestDescribeCommand/should_show_the_command_description (0.00s) | |
--- PASS: TestDescribeCommand/should_return_command_help_if_there_is_some (0.00s) | |
--- PASS: TestDescribeCommand/should_show_arguments_if_there_are_any (0.00s) | |
--- PASS: TestDescribeCommand/should_show_optional_arguments_wrapped_in_brackets (0.00s) | |
--- PASS: TestDescribeCommand/should_show_that_there_are_options_if_there_are_any (0.00s) | |
--- PASS: TestDescribeCommand/should_show_that_there_are_sub-commands_if_there_are_any (0.00s) | |
=== RUN TestDescribeCommands | |
=== RUN TestDescribeCommands/should_include_a_title | |
=== RUN TestDescribeCommands/should_show_all_command_names | |
=== RUN TestDescribeCommands/should_show_all_command_descriptions | |
=== RUN TestDescribeCommands/should_show_the_commands_in_alphabetical_order | |
=== RUN TestDescribeCommands/should_show_command_aliases | |
--- PASS: TestDescribeCommands (0.00s) | |
--- PASS: TestDescribeCommands/should_include_a_title (0.00s) | |
--- PASS: TestDescribeCommands/should_show_all_command_names (0.00s) | |
--- PASS: TestDescribeCommands/should_show_all_command_descriptions (0.00s) | |
--- PASS: TestDescribeCommands/should_show_the_commands_in_alphabetical_order (0.00s) | |
--- PASS: TestDescribeCommands/should_show_command_aliases (0.00s) | |
=== RUN TestCommand | |
=== RUN TestCommand/AddCommands() | |
=== RUN TestCommand/AddCommands()/should_add_all_of_the_given_sub-commands | |
=== RUN TestCommand/AddCommand() | |
=== RUN TestCommand/AddCommand()/should_add_a_given_sub-command | |
=== RUN TestCommand/Commands() | |
=== RUN TestCommand/Commands()/should_return_all_sub-commands | |
--- PASS: TestCommand (0.00s) | |
--- PASS: TestCommand/AddCommands() (0.00s) | |
--- PASS: TestCommand/AddCommands()/should_add_all_of_the_given_sub-commands (0.00s) | |
--- PASS: TestCommand/AddCommand() (0.00s) | |
--- PASS: TestCommand/AddCommand()/should_add_a_given_sub-command (0.00s) | |
--- PASS: TestCommand/Commands() (0.00s) | |
--- PASS: TestCommand/Commands()/should_return_all_sub-commands (0.00s) | |
=== RUN TestNewDefinition | |
--- PASS: TestNewDefinition (0.00s) | |
=== RUN TestDefinition | |
=== RUN TestDefinition/Arguments() | |
=== RUN TestDefinition/Arguments()/should_return_an_empty_slice_if_no_arguments_have_been_added | |
=== RUN TestDefinition/Arguments()/should_return_an_ordered_slice_of_arguments | |
=== RUN TestDefinition/Options() | |
=== RUN TestDefinition/Options()/should_return_an_empty_slice_if_no_options_have_been_added | |
=== RUN TestDefinition/Options()/should_return_a_slice_of_options | |
=== RUN TestDefinition/AddArgument() | |
=== RUN TestDefinition/AddArgument()/should_error_if_an_invalid_option_specification_is_given | |
=== RUN TestDefinition/AddArgument()/should_error_if_an_argument_with_the_same_name_exists | |
=== RUN TestDefinition/AddArgument()/should_add_an_argument | |
=== RUN TestDefinition/AddOption() | |
=== RUN TestDefinition/AddOption()/should_error_if_an_invalid_option_specification_is_given | |
=== RUN TestDefinition/AddOption()/should_error_if_an_option_with_the_same_name_exists | |
=== RUN TestDefinition/AddOption()/should_add_an_option | |
--- PASS: TestDefinition (0.00s) | |
--- PASS: TestDefinition/Arguments() (0.00s) | |
--- PASS: TestDefinition/Arguments()/should_return_an_empty_slice_if_no_arguments_have_been_added (0.00s) | |
--- PASS: TestDefinition/Arguments()/should_return_an_ordered_slice_of_arguments (0.00s) | |
--- PASS: TestDefinition/Options() (0.00s) | |
--- PASS: TestDefinition/Options()/should_return_an_empty_slice_if_no_options_have_been_added (0.00s) | |
--- PASS: TestDefinition/Options()/should_return_a_slice_of_options (0.00s) | |
--- PASS: TestDefinition/AddArgument() (0.00s) | |
--- PASS: TestDefinition/AddArgument()/should_error_if_an_invalid_option_specification_is_given (0.00s) | |
--- PASS: TestDefinition/AddArgument()/should_error_if_an_argument_with_the_same_name_exists (0.00s) | |
--- PASS: TestDefinition/AddArgument()/should_add_an_argument (0.00s) | |
--- PASS: TestDefinition/AddOption() (0.00s) | |
--- PASS: TestDefinition/AddOption()/should_error_if_an_invalid_option_specification_is_given (0.00s) | |
--- PASS: TestDefinition/AddOption()/should_error_if_an_option_with_the_same_name_exists (0.00s) | |
--- PASS: TestDefinition/AddOption()/should_add_an_option (0.00s) | |
=== RUN TestMapInput | |
=== RUN TestMapInput/should_map_arguments_to_their_reference_values | |
=== RUN TestMapInput/should_error_parsing_arguments_with_invalid_values | |
=== RUN TestMapInput/should_error_when_required_arguments_are_missing_from_input | |
=== RUN TestMapInput/should_not_error_when_optional_arguments_are_missing_from_input | |
=== RUN TestMapInput/should_map_short_options_to_their_reference_values | |
=== RUN TestMapInput/should_map_long_options_to_their_reference_values | |
=== RUN TestMapInput/should_ignore_options_that_don't_exist_in_the_definition | |
=== RUN TestMapInput/should_error_mapping_an_option_that_requires_a_value_with_no_value | |
=== RUN TestMapInput/should_not_error_parsing_an_option_that_doesn't_require_a_value | |
=== RUN TestMapInput/should_set_flag_option_values_where_applicable | |
=== RUN TestMapInput/should_error_parsing_options_with_invalid_values | |
=== RUN TestMapInput/should_map_env_vars_to_their_reference_values | |
=== RUN TestMapInput/should_ignore_env_vars_that_don't_exist_in_the_definition | |
=== RUN TestMapInput/should_error_mapping_an_env_var_that_requires_a_value_with_no_value | |
=== RUN TestMapInput/should_not_error_mapping_an_env_var_that_doesn't_require_a_value | |
=== RUN TestMapInput/should_error_parsing_options_with_invalid_values#01 | |
--- PASS: TestMapInput (0.00s) | |
--- PASS: TestMapInput/should_map_arguments_to_their_reference_values (0.00s) | |
--- PASS: TestMapInput/should_error_parsing_arguments_with_invalid_values (0.00s) | |
--- PASS: TestMapInput/should_error_when_required_arguments_are_missing_from_input (0.00s) | |
--- PASS: TestMapInput/should_not_error_when_optional_arguments_are_missing_from_input (0.00s) | |
--- PASS: TestMapInput/should_map_short_options_to_their_reference_values (0.00s) | |
--- PASS: TestMapInput/should_map_long_options_to_their_reference_values (0.00s) | |
--- PASS: TestMapInput/should_ignore_options_that_don't_exist_in_the_definition (0.00s) | |
--- PASS: TestMapInput/should_error_mapping_an_option_that_requires_a_value_with_no_value (0.00s) | |
--- PASS: TestMapInput/should_not_error_parsing_an_option_that_doesn't_require_a_value (0.00s) | |
--- PASS: TestMapInput/should_set_flag_option_values_where_applicable (0.00s) | |
--- PASS: TestMapInput/should_error_parsing_options_with_invalid_values (0.00s) | |
--- PASS: TestMapInput/should_map_env_vars_to_their_reference_values (0.00s) | |
--- PASS: TestMapInput/should_ignore_env_vars_that_don't_exist_in_the_definition (0.00s) | |
--- PASS: TestMapInput/should_error_mapping_an_env_var_that_requires_a_value_with_no_value (0.00s) | |
--- PASS: TestMapInput/should_not_error_mapping_an_env_var_that_doesn't_require_a_value (0.00s) | |
--- PASS: TestMapInput/should_error_parsing_options_with_invalid_values#01 (0.00s) | |
=== RUN TestParseInput | |
=== RUN TestParseInput/should_return_an_empty_Input_if_no_parameters_are_given | |
=== RUN TestParseInput/should_parse_strings_not_starting_with_'-'_or_'--'_as_arguments | |
=== RUN TestParseInput/should_retain_argument_order | |
=== RUN TestParseInput/should_not_parse_'--'_as_a_parameter | |
=== RUN TestParseInput/should_parse_short_options | |
=== RUN TestParseInput/should_parse_short_options_with_values | |
=== RUN TestParseInput/should_parse_long_options | |
=== RUN TestParseInput/should_parse_long_options_with_values | |
--- PASS: TestParseInput (0.00s) | |
--- PASS: TestParseInput/should_return_an_empty_Input_if_no_parameters_are_given (0.00s) | |
--- PASS: TestParseInput/should_parse_strings_not_starting_with_'-'_or_'--'_as_arguments (0.00s) | |
--- PASS: TestParseInput/should_retain_argument_order (0.00s) | |
--- PASS: TestParseInput/should_not_parse_'--'_as_a_parameter (0.00s) | |
--- PASS: TestParseInput/should_parse_short_options (0.00s) | |
--- PASS: TestParseInput/should_parse_short_options_with_values (0.00s) | |
--- PASS: TestParseInput/should_parse_long_options (0.00s) | |
--- PASS: TestParseInput/should_parse_long_options_with_values (0.00s) | |
=== RUN TestInput | |
=== RUN TestInput/HasOption | |
=== RUN TestInput/HasOption/should_return_true_if_a_given_option_exists | |
=== RUN TestInput/HasOption/should_return_false_if_a_given_option_doesn't_exist | |
--- PASS: TestInput (0.00s) | |
--- PASS: TestInput/HasOption (0.00s) | |
--- PASS: TestInput/HasOption/should_return_true_if_a_given_option_exists (0.00s) | |
--- PASS: TestInput/HasOption/should_return_false_if_a_given_option_doesn't_exist (0.00s) | |
=== RUN TestNewOutput | |
--- PASS: TestNewOutput (0.00s) | |
=== RUN TestOutput | |
=== RUN TestOutput/Print() | |
=== RUN TestOutput/Print()/should_handle_printing | |
=== RUN TestOutput/Print()/should_handle_printing_multiple_values | |
=== RUN TestOutput/Printf() | |
=== RUN TestOutput/Printf()/should_handle_printing | |
=== RUN TestOutput/Printf()/should_handle_multiple_parameters | |
=== RUN TestOutput/Println() | |
=== RUN TestOutput/Println()/should_handle_printing | |
=== RUN TestOutput/Println()/should_handle_printing_multiple_values | |
--- PASS: TestOutput (0.00s) | |
--- PASS: TestOutput/Print() (0.00s) | |
--- PASS: TestOutput/Print()/should_handle_printing (0.00s) | |
--- PASS: TestOutput/Print()/should_handle_printing_multiple_values (0.00s) | |
--- PASS: TestOutput/Printf() (0.00s) | |
--- PASS: TestOutput/Printf()/should_handle_printing (0.00s) | |
--- PASS: TestOutput/Printf()/should_handle_multiple_parameters (0.00s) | |
--- PASS: TestOutput/Println() (0.00s) | |
--- PASS: TestOutput/Println()/should_handle_printing (0.00s) | |
--- PASS: TestOutput/Println()/should_handle_printing_multiple_values (0.00s) | |
PASS | |
coverage: 87.3% of statements in github.com/eidolon/console, github.com/eidolon/console/parameters, github.com/eidolon/console/specification | |
ok github.com/eidolon/console 0.004s | |
Running test: go test -coverpkg=github.com/eidolon/console,github.com/eidolon/console/parameters,github.com/eidolon/console/specification -coverprofile=/tmp/coverage922332813/40b28749f67939f5cc199ebe44f69a6f.out -v | |
warning: no packages being tested depend on github.com/eidolon/console | |
warning: no packages being tested depend on github.com/eidolon/console/specification | |
=== RUN TestDescribeArguments | |
=== RUN TestDescribeArguments/should_include_a_title | |
=== RUN TestDescribeArguments/should_include_argument_names | |
=== RUN TestDescribeArguments/should_handle_multiple_arguments | |
=== RUN TestDescribeArguments/should_sort_arguments_into_alphabetical_order | |
--- PASS: TestDescribeArguments (0.00s) | |
--- PASS: TestDescribeArguments/should_include_a_title (0.00s) | |
--- PASS: TestDescribeArguments/should_include_argument_names (0.00s) | |
--- PASS: TestDescribeArguments/should_handle_multiple_arguments (0.00s) | |
--- PASS: TestDescribeArguments/should_sort_arguments_into_alphabetical_order (0.00s) | |
=== RUN TestDescribeOptions | |
=== RUN TestDescribeOptions/should_include_a_title | |
=== RUN TestDescribeOptions/should_include_option_names | |
=== RUN TestDescribeOptions/should_handle_multiple_arguments | |
=== RUN TestDescribeOptions/should_sort_arguments_into_alphabetical_order | |
=== RUN TestDescribeOptions/should_show_value_names | |
=== RUN TestDescribeOptions/should_show_value_names_as_optional_if_they_are | |
=== RUN TestDescribeOptions/should_sort_short_options_before_long_options_names | |
=== RUN TestDescribeOptions/should_sort_short_options_into_alphabetical_order | |
--- PASS: TestDescribeOptions (0.00s) | |
--- PASS: TestDescribeOptions/should_include_a_title (0.00s) | |
--- PASS: TestDescribeOptions/should_include_option_names (0.00s) | |
--- PASS: TestDescribeOptions/should_handle_multiple_arguments (0.00s) | |
--- PASS: TestDescribeOptions/should_sort_arguments_into_alphabetical_order (0.00s) | |
--- PASS: TestDescribeOptions/should_show_value_names (0.00s) | |
--- PASS: TestDescribeOptions/should_show_value_names_as_optional_if_they_are (0.00s) | |
--- PASS: TestDescribeOptions/should_sort_short_options_before_long_options_names (0.00s) | |
--- PASS: TestDescribeOptions/should_sort_short_options_into_alphabetical_order (0.00s) | |
=== RUN TestBoolValue | |
=== RUN TestBoolValue/NewBoolValue() | |
=== RUN TestBoolValue/Set() | |
=== RUN TestBoolValue/Set()/should_not_error_for_valid_values | |
=== RUN TestBoolValue/Set()/should_error_for_invalid_values | |
=== RUN TestBoolValue/Set()/should_modify_the_bool_that_it_references | |
=== RUN TestBoolValue/String() | |
=== RUN TestBoolValue/FlagValue() | |
--- PASS: TestBoolValue (0.00s) | |
--- PASS: TestBoolValue/NewBoolValue() (0.00s) | |
--- PASS: TestBoolValue/Set() (0.00s) | |
--- PASS: TestBoolValue/Set()/should_not_error_for_valid_values (0.00s) | |
--- PASS: TestBoolValue/Set()/should_error_for_invalid_values (0.00s) | |
--- PASS: TestBoolValue/Set()/should_modify_the_bool_that_it_references (0.00s) | |
--- PASS: TestBoolValue/String() (0.00s) | |
--- PASS: TestBoolValue/FlagValue() (0.00s) | |
=== RUN TestDateValue | |
=== RUN TestDateValue/NewDateValue() | |
=== RUN TestDateValue/Set() | |
=== RUN TestDateValue/Set()/should_not_error_for_valid_values | |
=== RUN TestDateValue/Set()/should_error_for_invalid_values | |
=== RUN TestDateValue/Set()/should_modify_the_date_that_it_references | |
=== RUN TestDateValue/String() | |
--- PASS: TestDateValue (0.00s) | |
--- PASS: TestDateValue/NewDateValue() (0.00s) | |
--- PASS: TestDateValue/Set() (0.00s) | |
--- PASS: TestDateValue/Set()/should_not_error_for_valid_values (0.00s) | |
--- PASS: TestDateValue/Set()/should_error_for_invalid_values (0.00s) | |
--- PASS: TestDateValue/Set()/should_modify_the_date_that_it_references (0.00s) | |
--- PASS: TestDateValue/String() (0.00s) | |
=== RUN TestDurationValue | |
=== RUN TestDurationValue/NewDurationValue() | |
=== RUN TestDurationValue/Set() | |
=== RUN TestDurationValue/Set()/should_not_error_for_valid_values | |
=== RUN TestDurationValue/Set()/should_error_for_invalid_values | |
=== RUN TestDurationValue/Set()/should_modify_the_bool_that_it_references | |
=== RUN TestDurationValue/String() | |
--- PASS: TestDurationValue (0.00s) | |
--- PASS: TestDurationValue/NewDurationValue() (0.00s) | |
--- PASS: TestDurationValue/Set() (0.00s) | |
--- PASS: TestDurationValue/Set()/should_not_error_for_valid_values (0.00s) | |
--- PASS: TestDurationValue/Set()/should_error_for_invalid_values (0.00s) | |
--- PASS: TestDurationValue/Set()/should_modify_the_bool_that_it_references (0.00s) | |
--- PASS: TestDurationValue/String() (0.00s) | |
=== RUN TestFloat32Value | |
=== RUN TestFloat32Value/NewFloat32Value() | |
=== RUN TestFloat32Value/Set() | |
=== RUN TestFloat32Value/Set()/should_not_error_for_valid_values | |
=== RUN TestFloat32Value/Set()/should_error_for_invalid_values | |
=== RUN TestFloat32Value/Set()/should_modify_the_float32_that_it_references | |
=== RUN TestFloat32Value/String() | |
--- PASS: TestFloat32Value (0.00s) | |
--- PASS: TestFloat32Value/NewFloat32Value() (0.00s) | |
--- PASS: TestFloat32Value/Set() (0.00s) | |
--- PASS: TestFloat32Value/Set()/should_not_error_for_valid_values (0.00s) | |
--- PASS: TestFloat32Value/Set()/should_error_for_invalid_values (0.00s) | |
--- PASS: TestFloat32Value/Set()/should_modify_the_float32_that_it_references (0.00s) | |
--- PASS: TestFloat32Value/String() (0.00s) | |
=== RUN TestFloat64Value | |
=== RUN TestFloat64Value/NewFloat64Value() | |
=== RUN TestFloat64Value/Set() | |
=== RUN TestFloat64Value/Set()/should_not_error_for_valid_values | |
=== RUN TestFloat64Value/Set()/should_error_for_invalid_values | |
=== RUN TestFloat64Value/Set()/should_modify_the_float64_that_it_references | |
=== RUN TestFloat64Value/String() | |
--- PASS: TestFloat64Value (0.00s) | |
--- PASS: TestFloat64Value/NewFloat64Value() (0.00s) | |
--- PASS: TestFloat64Value/Set() (0.00s) | |
--- PASS: TestFloat64Value/Set()/should_not_error_for_valid_values (0.00s) | |
--- PASS: TestFloat64Value/Set()/should_error_for_invalid_values (0.00s) | |
--- PASS: TestFloat64Value/Set()/should_modify_the_float64_that_it_references (0.00s) | |
--- PASS: TestFloat64Value/String() (0.00s) | |
=== RUN TestIntValue | |
=== RUN TestIntValue/NewIntValue() | |
=== RUN TestIntValue/Set() | |
=== RUN TestIntValue/Set()/should_not_error_for_valid_values | |
=== RUN TestIntValue/Set()/should_error_for_invalid_values | |
=== RUN TestIntValue/Set()/should_modify_the_int_that_it_references | |
=== RUN TestIntValue/String() | |
--- PASS: TestIntValue (0.00s) | |
--- PASS: TestIntValue/NewIntValue() (0.00s) | |
--- PASS: TestIntValue/Set() (0.00s) | |
--- PASS: TestIntValue/Set()/should_not_error_for_valid_values (0.00s) | |
--- PASS: TestIntValue/Set()/should_error_for_invalid_values (0.00s) | |
--- PASS: TestIntValue/Set()/should_modify_the_int_that_it_references (0.00s) | |
--- PASS: TestIntValue/String() (0.00s) | |
=== RUN TestIPValue | |
=== RUN TestIPValue/NewIPValue() | |
=== RUN TestIPValue/Set() | |
=== RUN TestIPValue/Set()/should_not_error_for_valid_values | |
=== RUN TestIPValue/Set()/should_error_for_invalid_values | |
=== RUN TestIPValue/Set()/should_modify_the_IP_that_it_references | |
=== RUN TestIPValue/String() | |
--- PASS: TestIPValue (0.00s) | |
--- PASS: TestIPValue/NewIPValue() (0.00s) | |
--- PASS: TestIPValue/Set() (0.00s) | |
--- PASS: TestIPValue/Set()/should_not_error_for_valid_values (0.00s) | |
--- PASS: TestIPValue/Set()/should_error_for_invalid_values (0.00s) | |
--- PASS: TestIPValue/Set()/should_modify_the_IP_that_it_references (0.00s) | |
--- PASS: TestIPValue/String() (0.00s) | |
=== RUN TestStringValue | |
=== RUN TestStringValue/NewStringValue() | |
=== RUN TestStringValue/Set() | |
=== RUN TestStringValue/Set()/should_not_error_for_valid_values | |
=== RUN TestStringValue/Set()/should_modify_the_string_that_it_references | |
=== RUN TestStringValue/String() | |
--- PASS: TestStringValue (0.00s) | |
--- PASS: TestStringValue/NewStringValue() (0.00s) | |
--- PASS: TestStringValue/Set() (0.00s) | |
--- PASS: TestStringValue/Set()/should_not_error_for_valid_values (0.00s) | |
--- PASS: TestStringValue/Set()/should_modify_the_string_that_it_references (0.00s) | |
--- PASS: TestStringValue/String() (0.00s) | |
=== RUN TestUrlValue | |
=== RUN TestUrlValue/NewURLValue() | |
=== RUN TestUrlValue/Set() | |
=== RUN TestUrlValue/Set()/should_not_error_for_valid_values | |
=== RUN TestUrlValue/Set()/should_modify_the_URL_that_it_references | |
=== RUN TestUrlValue/String() | |
--- PASS: TestUrlValue (0.00s) | |
--- PASS: TestUrlValue/NewURLValue() (0.00s) | |
--- PASS: TestUrlValue/Set() (0.00s) | |
--- PASS: TestUrlValue/Set()/should_not_error_for_valid_values (0.00s) | |
--- PASS: TestUrlValue/Set()/should_modify_the_URL_that_it_references (0.00s) | |
--- PASS: TestUrlValue/String() (0.00s) | |
PASS | |
coverage: 21.6% of statements in github.com/eidolon/console, github.com/eidolon/console/parameters, github.com/eidolon/console/specification | |
ok github.com/eidolon/console/parameters 0.004s | |
Running test: go test -coverpkg=github.com/eidolon/console,github.com/eidolon/console/parameters,github.com/eidolon/console/specification -coverprofile=/tmp/coverage922332813/1e6588ea84014c5f3b34deb304765da1.out -v | |
warning: no packages being tested depend on github.com/eidolon/console | |
=== RUN TestParseArgumentSpecification | |
=== RUN TestParseArgumentSpecification/should_set_the_name | |
=== RUN TestParseArgumentSpecification/should_set_whether_or_not_the_argument_is_required | |
=== RUN TestParseArgumentSpecification/should_expect_a_close_bracket_if_an_opening_one_is_given | |
=== RUN TestParseArgumentSpecification/should_not_expect_any_whitespace | |
=== RUN TestParseArgumentSpecification/should_always_expect_an_identifier | |
--- PASS: TestParseArgumentSpecification (0.00s) | |
--- PASS: TestParseArgumentSpecification/should_set_the_name (0.00s) | |
--- PASS: TestParseArgumentSpecification/should_set_whether_or_not_the_argument_is_required (0.00s) | |
--- PASS: TestParseArgumentSpecification/should_expect_a_close_bracket_if_an_opening_one_is_given (0.00s) | |
--- PASS: TestParseArgumentSpecification/should_not_expect_any_whitespace (0.00s) | |
--- PASS: TestParseArgumentSpecification/should_always_expect_an_identifier (0.00s) | |
=== RUN TestParseOptionSpecification | |
=== RUN TestParseOptionSpecification/should_set_the_name(s) | |
=== RUN TestParseOptionSpecification/should_allow_no_value_mode_to_be_set | |
=== RUN TestParseOptionSpecification/should_allow_option_values | |
=== RUN TestParseOptionSpecification/should_allow_required_values | |
=== RUN TestParseOptionSpecification/should_error_when_given_an_invalid_long_option_name | |
=== RUN TestParseOptionSpecification/should_error_when_given_an_invalid_short_option_name | |
=== RUN TestParseOptionSpecification/should_error_when_given_an_short_option_name_that's_too_long | |
=== RUN TestParseOptionSpecification/should_error_when_given_an_invalid_specification | |
=== RUN TestParseOptionSpecification/should_error_if_no_identifier_is_given_for_the_value_name | |
=== RUN TestParseOptionSpecification/should_expect_EQUALS_if_an_LBRACK_is_found | |
=== RUN TestParseOptionSpecification/should_expect_an_RBRACK_if_an_LBRACK_is_given | |
=== RUN TestParseOptionSpecification/should_expect_EOF_after_value_identifier_is_no_LBRACK_is_given | |
--- PASS: TestParseOptionSpecification (0.00s) | |
--- PASS: TestParseOptionSpecification/should_set_the_name(s) (0.00s) | |
--- PASS: TestParseOptionSpecification/should_allow_no_value_mode_to_be_set (0.00s) | |
--- PASS: TestParseOptionSpecification/should_allow_option_values (0.00s) | |
--- PASS: TestParseOptionSpecification/should_allow_required_values (0.00s) | |
--- PASS: TestParseOptionSpecification/should_error_when_given_an_invalid_long_option_name (0.00s) | |
--- PASS: TestParseOptionSpecification/should_error_when_given_an_invalid_short_option_name (0.00s) | |
--- PASS: TestParseOptionSpecification/should_error_when_given_an_short_option_name_that's_too_long (0.00s) | |
--- PASS: TestParseOptionSpecification/should_error_when_given_an_invalid_specification (0.00s) | |
--- PASS: TestParseOptionSpecification/should_error_if_no_identifier_is_given_for_the_value_name (0.00s) | |
--- PASS: TestParseOptionSpecification/should_expect_EQUALS_if_an_LBRACK_is_found (0.00s) | |
--- PASS: TestParseOptionSpecification/should_expect_an_RBRACK_if_an_LBRACK_is_given (0.00s) | |
--- PASS: TestParseOptionSpecification/should_expect_EOF_after_value_identifier_is_no_LBRACK_is_given (0.00s) | |
=== RUN TestNewScanner | |
--- PASS: TestNewScanner (0.00s) | |
=== RUN TestScanner | |
=== RUN TestScanner/Scan() | |
=== RUN TestScanner/Scan()/should_handle_end_of_input | |
=== RUN TestScanner/Scan()/should_be_able_to_scan_left-brackets_([) | |
=== RUN TestScanner/Scan()/should_be_able_to_scan_right-brackets_(]) | |
=== RUN TestScanner/Scan()/should_be_able_to_scan_commas_(,) | |
=== RUN TestScanner/Scan()/should_be_able_to_scan_equals_(=) | |
=== RUN TestScanner/Scan()/should_be_able_to_scan_hyphens_(-) | |
=== RUN TestScanner/Scan()/should_be_able_to_scan_whitespace | |
=== RUN TestScanner/Scan()/should_only_scan_up_to_available_whitespace_characters | |
=== RUN TestScanner/Scan()/should_be_able_to_scan_identifiers | |
=== RUN TestScanner/Scan()/should_only_scan_up_to_available_identifier_characters | |
=== RUN TestScanner/Scan()/should_handle_illegal_characters | |
--- PASS: TestScanner (0.00s) | |
--- PASS: TestScanner/Scan() (0.00s) | |
--- PASS: TestScanner/Scan()/should_handle_end_of_input (0.00s) | |
--- PASS: TestScanner/Scan()/should_be_able_to_scan_left-brackets_([) (0.00s) | |
--- PASS: TestScanner/Scan()/should_be_able_to_scan_right-brackets_(]) (0.00s) | |
--- PASS: TestScanner/Scan()/should_be_able_to_scan_commas_(,) (0.00s) | |
--- PASS: TestScanner/Scan()/should_be_able_to_scan_equals_(=) (0.00s) | |
--- PASS: TestScanner/Scan()/should_be_able_to_scan_hyphens_(-) (0.00s) | |
--- PASS: TestScanner/Scan()/should_be_able_to_scan_whitespace (0.00s) | |
--- PASS: TestScanner/Scan()/should_only_scan_up_to_available_whitespace_characters (0.00s) | |
--- PASS: TestScanner/Scan()/should_be_able_to_scan_identifiers (0.00s) | |
--- PASS: TestScanner/Scan()/should_only_scan_up_to_available_identifier_characters (0.00s) | |
--- PASS: TestScanner/Scan()/should_handle_illegal_characters (0.00s) | |
PASS | |
coverage: 23.5% of statements in github.com/eidolon/console, github.com/eidolon/console/parameters, github.com/eidolon/console/specification | |
ok github.com/eidolon/console/specification 0.003s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment