没有合适的资源?快使用搜索试试~ 我知道了~
gotests:根据您的源代码自动生成Go测试样板
共234个文件
go:175个
tmpl:48个
md:3个
需积分: 9 0 下载量 4 浏览量
2021-02-02
15:38:43
上传
评论
收藏 121KB ZIP 举报
温馨提示
est gotests使编写Go测试变得容易。 这是一个Golang命令行工具,可根据其目标源文件的功能和方法签名生成。 测试文件中的所有新依赖项都将自动导入。 演示版 下面显示gotests行动中使用的。 还存在用于 , , , , 和。 安装 最低Go版本: Go 1.6 使用安装和更新: $ go get -u github.com/cweill/gotests/... 用法 gotests , gotests可以为特定的源文件或整个目录生成Go测试。 默认情况下,它将其输出打印到stdout 。 $ gotests [options] PATH ... 可用选项: -all generate tests for all functions and methods -excl regexp. generate tests for functions and methods that don't match. Takes precedence o
资源推荐
资源详情
资源评论
收起资源包目录
gotests:根据您的源代码自动生成Go测试样板 (234个子文件)
.gitignore 9B
.gitkeep 0B
gotests_test.go 27KB
tmpl.go 9KB
esc.go 8KB
goparser.go 7KB
gotests.go 6KB
main.go 4KB
process.go 4KB
render.go 4KB
models.go 3KB
subtest_edition_-_functions_and_receivers_with_same_names_except_exporting.go 3KB
functions_and_receivers_with_same_names_except_exporting.go 3KB
io_writer_parameters.go 2KB
existing_test_file.go 2KB
output.go 2KB
receiver_struct_with_reserved_field_names.go 2KB
template_testify_subtests_printinputs.go 2KB
functions_and_methods_with_name_receivers_parameters_and_results.go 2KB
template_testify_printinputs.go 2KB
template_testify.go 2KB
template_testify_subtests.go 2KB
process_test.go 1KB
target_test_file.go 1KB
main_test.go 1KB
custom_importer_fails.go 1KB
multiple_functions.go 1KB
input.go 1KB
existing_test_file_with_package_level_mixed_types_comments.go 1KB
testfiles.go 1KB
two_different_structs_with_same_method_name.go 999B
test103_test.go 974B
multiple_functions_filtering_exported.go 954B
existing_test_file_with_package_level_comments_newline.go 939B
existing_test_file_with_package_level_comments_without_newline.go 938B
test_existing_test_file_with_mixed_comments.go 885B
multiple_functions_with_case-insensitive_only.go 883B
multiple_functions_excluding_on_receiver.go 883B
multiple_functions_excluding_on_method.go 883B
multiple_functions_with_only.go 883B
helper.go 843B
no_init_funcs.go 828B
test100_test.go 808B
existing_test_file_with_package_level_comments.go 787B
multiple_named_results.go 784B
existing_test_file_with_multiple_imports.go 722B
underlying_types.go 707B
struct_receiver_with_multiple_fields.go 696B
test_existing_test_file_with_comments_newline.go 693B
test_existing_test_file_with_comments_without_newline.go 692B
function_returning_two_results_and_an_error.go 669B
struct_receiver_with_anonymous_fields.go 656B
two_structs_with_same_method_name.go 630B
receiver_struct_with_fields_with_complex_package_names.go 598B
undefined_types.go 591B
print_inputs_with_multiple_arguments.go 569B
print_inputs_with_single_argument.go 562B
multiple_functions_filtering_exported_with_only.go 558B
test_existing_test_file_with_comments.go 548B
function_with_slice_argument_and_return_type.go 542B
method_on_a_struct_pointer.go 536B
test200_test.go 530B
function_with_struct_pointer_argument_and_return_type.go 526B
function_with_multiple_arguments.go 513B
different_packages_in_same_directory_-_part_2.go 469B
different_packages_in_same_directory_-_part_1.go 469B
file_with_multiple_imports.go 461B
naked_function_with_parallel_subtests.go 459B
test_file_with_syntax_errors.go 454B
test200.go 447B
function_returning_an_error.go 438B
multiple_functions_with_only_and_excl_competing.go 431B
multiple_functions_with_only_filtering_on_receiver.go 431B
multiple_functions_with_only_filtering_on_method.go 431B
multiple_functions_with_excl.go 431B
multiple_functions_with_case-insensitive_excl.go 431B
multiple_functions_with_both_only_and_excl.go 431B
multiple_functions_filtering_exported_with_excl.go 431B
function_with_named_imports.go 410B
test_t_receiver.go 406B
naked_function_with_subtests.go 405B
existing_test_file_with_no_functions.go 402B
function_with_multiple_parameters_of_the_same_type.go 400B
function_with_map_argument_and_return_type.go 397B
function_with_a_function_parameter_that_returns_two_results.go 397B
function_with_a_function_parameter_with_its_own_parameters_and_result.go 393B
function_with_imported_interface_receiver_parameter_and_result.go 390B
function_with_channel_parameter_and_result.go 388B
function_with_interface_parameter_and_result.go 388B
function_with_imported_struct_receiver_parameter_and_result.go 388B
test036.go 383B
function_with_defined_interface_type_parameter_and_result.go 380B
function_returning_only_an_error.go 379B
function_with_a_function_parameter.go 375B
init_func.go 368B
empty_test_file.go 358B
function_with_a_variadic_parameter.go 355B
struct_value_method_with_struct_value_return_type.go 351B
test100.go 348B
existing_test_file_with_just_package_declaration.go 347B
共 234 条
- 1
- 2
- 3
资源评论
zhuyurrr
- 粉丝: 26
- 资源: 4714
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功