Black Lives Matter.
Support the Equal Justice Initiative.
Documents
Packages
The Project
Help
Blog
Play
Directory
src
/
cmd
/
go
/
testdata
/
script
Documentation:
cmd/go/testdata
File
Bytes
../
README
11979
badgo.txt
985
bug.txt
958
build_GOTMPDIR.txt
1432
build_acl_windows.txt
1348
build_arm.txt
191
build_cache_arch_mode.txt
243
build_cache_compile.txt
430
build_cache_disabled.txt
968
build_cache_gomips.txt
859
build_cache_link.txt
644
build_cache_output.txt
2040
build_cache_trimpath.txt
871
build_cd_gopath_different.txt
1810
build_cgo_consistent_results.txt
441
build_darwin_cc_arch.txt
345
build_dash_n_cgo.txt
268
build_dash_o_dev_null.txt
154
build_dash_x.txt
1119
build_exe.txt
551
build_gcflags.txt
527
build_gopath_order.txt
855
build_i.txt
1012
build_i_deprecate.txt
496
build_ignore_leading_bom.txt
486
build_import_comment.txt
1231
build_import_cycle.txt
314
build_internal.txt
1203
build_issue6480.txt
2779
build_link_x_import_path_escape.txt
332
build_multi_main.txt
699
build_n_cgo.txt
223
build_no_go.txt
748
build_nocache.txt
1220
build_output.txt
1835
build_overlay.txt
7650
build_patterns_outside_gopath.txt
426
build_plugin_non_main.txt
255
build_relative_pkgdir.txt
192
build_relative_tmpdir.txt
410
build_runtime_gcflags.txt
349
build_tag_goexperiment.txt
460
build_tags_no_comma.txt
161
build_test_only.txt
500
build_trimpath.txt
4933
build_trimpath_cgo.txt
3725
build_unsupported_goos.txt
144
build_vendor.txt
703
cache_unix.txt
830
cache_vet.txt
712
cgo_asm_error.txt
343
cgo_bad_directives.txt
2820
cgo_depends_on_syscall.txt
158
cgo_flag_contains_space.txt
523
cgo_path.txt
972
cgo_path_space.txt
1610
cgo_stale.txt
898
cgo_syso_issue29253.txt
441
clean_binary.txt
1334
clean_cache_n.txt
552
clean_testcache.txt
585
cmd_import_error.txt
470
cover_asm.txt
595
cover_atomic_pkgall.txt
316
cover_blank_func_decl.txt
385
cover_cgo.txt
414
cover_cgo_extra_file.txt
551
cover_cgo_extra_test.txt
575
cover_cgo_xtest.txt
455
cover_dash_c.txt
380
cover_dep_loop.txt
541
cover_dot_import.txt
370
cover_error.txt
1310
cover_import_main_loop.txt
523
cover_mod_empty.txt
176
cover_modes.txt
669
cover_pattern.txt
674
cover_pkgall_imports.txt
870
cover_pkgall_multiple_mains.txt
883
cover_pkgall_runtime.txt
305
cover_runs.txt
404
cover_statements.txt
789
cover_sync_atomic_import.txt
345
cpu_profile_twice.txt
391
devnull.txt
525
doc.txt
1230
embed.txt
2059
embed_fmt.txt
348
env_cross_build.txt
536
env_exp.txt
421
env_unset.txt
571
env_write.txt
5522
fileline.txt
201
fmt_load_errors.txt
532
gccgo_link_c.txt
408
gccgo_m.txt
315
gccgo_mangle.txt
137
gcflags_patterns.txt
2477
generate.txt
2484
generate_bad_imports.txt
275
generate_env.txt
544
generate_invalid.txt
4241
get_404_meta.txt
303
get_brace.txt
1364
get_custom_domain_wildcard.txt
110
get_dash_t.txt
189
get_domain_root.txt
595
get_dot_slash_download.txt
178
get_dotfiles.txt
1635
get_go_file.txt
2027
get_goroot.txt
1493
get_insecure.txt
1445
get_insecure_custom_domain.txt
220
get_insecure_env.txt
1022
get_insecure_no_longer_supported.txt
372
get_insecure_redirect.txt
469
get_insecure_update.txt
432
get_internal_wildcard.txt
151
get_issue11307.txt
235
get_legacy.txt
1951
get_non_pkg.txt
297
get_race.txt
135
get_test_only.txt
125
get_tilde.txt
779
get_update.txt
617
get_update_all.txt
250
get_update_unknown_protocol.txt
469
get_update_wildcard.txt
518
get_vcs_error_message.txt
211
get_vendor.txt
1942
get_with_git_trace.txt
139
goflags.txt
1377
gopath_install.txt
1635
gopath_local.txt
3010
gopath_moved_repo.txt
1710
gopath_paths.txt
1076
gopath_std_vendor.txt
1391
gopath_vendor_dup_err.txt
411
goroot_executable.txt
2674
govcs.txt
6479
help.txt
1262
import_cycle.txt
235
import_ignore.txt
156
import_main.txt
1747
install_cgo_excluded.txt
178
install_cleans_build.txt
507
install_cmd_gobin.txt
370
install_cross_gobin.txt
660
install_msan_and_race_require_cgo.txt
362
install_rebuild_gopath.txt
465
install_rebuild_removed.txt
688
install_relative_gobin_fail.txt
159
install_shadow_gopath.txt
428
issue36000.txt
112
ldflag.txt
762
link_matching_actionid.txt
835
link_syso_issue33139.txt
962
linkname.txt
210
list_ambiguous_path.txt
1093
list_bad_import.txt
2194
list_case_collision.txt
1050
list_cgo_compiled_importmap.txt
1526
list_compiled_imports.txt
681
list_constraints.txt
1752
list_dedup_packages.txt
613
list_err_cycle.txt
288
list_err_stack.txt
595
list_find.txt
748
list_find_nodeps.txt
737
list_gofile_in_goroot.txt
1690
list_gomod_in_gopath.txt
421
list_importmap.txt
947
list_json_with_f.txt
459
list_linkshared.txt
297
list_load_err.txt
1751
list_module_when_error.txt
276
list_overlay.txt
1347
list_parse_err.txt
1290
list_permissions.txt
1927
list_shadow.txt
1208
list_split_main.txt
439
list_std.txt
693
list_std_vendor.txt
857
list_swigcxx.txt
499
list_symlink.txt
223
list_symlink_internal.txt
529
list_symlink_issue35941.txt
360
list_symlink_vendor_issue14054.txt
511
list_symlink_vendor_issue15201.txt
543
list_test_e.txt
239
list_test_err.txt
2857
list_test_imports.txt
474
list_test_non_go_files.txt
289
list_test_simple.txt
856
list_wildcard_skip_nonmatching.txt
344
load_test_pkg_err.txt
484
mod_all.txt
11953
mod_alt_goroot.txt
535
mod_ambiguous_import.txt
1416
mod_auth.txt
762
mod_bad_domain.txt
1561
mod_bad_filenames.txt
708
mod_build_info_err.txt
975
mod_build_tags.txt
538
mod_build_versioned.txt
346
mod_cache_dir.txt
267
mod_cache_rw.txt
2062
mod_case.txt
459
mod_case_cgo.txt
111
mod_clean_cache.txt
1821
mod_concurrent.txt
803
mod_convert.txt
2561
mod_convert_dep.txt
963
mod_convert_git.txt
1140
mod_convert_glide.txt
460
mod_convert_glockfile.txt
458
mod_convert_godeps.txt
479
mod_convert_tsv.txt
472
mod_convert_tsv_insecure.txt
631
mod_convert_vendor_conf.txt
462
mod_convert_vendor_json.txt
475
mod_convert_vendor_manifest.txt
469
mod_convert_vendor_yml.txt
460
mod_deprecate_message.txt
2904
mod_dir.txt
221
mod_doc.txt
2699
mod_domain_root.txt
193
mod_dot.txt
4705
mod_download.txt
7034
mod_download_concurrent_read.txt
2584
mod_download_hash.txt
877
mod_download_json.txt
243
mod_download_partial.txt
2156
mod_download_replace_file.txt
398
mod_e.txt
3244
mod_edit.txt
6070
mod_edit_go.txt
461
mod_edit_no_modcache.txt
419
mod_empty_err.txt
923
mod_enabled.txt
1764
mod_file_proxy.txt
1259
mod_find.txt
2503
mod_fs_patterns.txt
1662
mod_get_ambiguous_arg.txt
1949
mod_get_ambiguous_import.txt
1475
mod_get_ambiguous_pkg.txt
2656
mod_get_changes.txt
1810
mod_get_cmd.txt
536
mod_get_commit.txt
1482
mod_get_deprecate_install.txt
1140
mod_get_deprecated.txt
1936
mod_get_direct.txt
432
mod_get_downadd_indirect.txt
1367
mod_get_downgrade.txt
1484
mod_get_downgrade_missing.txt
1360
mod_get_downup_artifact.txt
2930
mod_get_downup_indirect.txt
1656
mod_get_downup_pseudo_artifact.txt
2139
mod_get_errors.txt
1849
mod_get_extra.txt
1418
mod_get_fallback.txt
246
mod_get_fossil.txt
813
mod_get_go_file.txt
2328
mod_get_hash.txt
620
mod_get_incompatible.txt
439
mod_get_indirect.txt
1625
mod_get_insecure_redirect.txt
873
mod_get_issue37438.txt
801
mod_get_latest_pseudo.txt
278
mod_get_lazy_indirect.txt
1188
mod_get_local.txt
1548
mod_get_main.txt
1783
mod_get_major.txt
626
mod_get_missing_ziphash.txt
2418
mod_get_moved.txt
1381
mod_get_newcycle.txt
452
mod_get_none.txt
259
mod_get_nopkgs.txt
1354
mod_get_patch.txt
3034
mod_get_patchbound.txt
1346
mod_get_patchcycle.txt
1132
mod_get_patchmod.txt
2125
mod_get_patterns.txt
1370
mod_get_pkgtags.txt
3680
mod_get_prefer_incompatible.txt
898
mod_get_private_vcs.txt
1602
mod_get_promote_implicit.txt
2293
mod_get_pseudo.txt
2274
mod_get_pseudo_other_branch.txt
1517
mod_get_pseudo_prefix.txt
1670
mod_get_replaced.txt
2599
mod_get_retract.txt
2212
mod_get_retract_ambiguous.txt
374
mod_get_split.txt
4926
mod_get_sum_noroot.txt
506
mod_get_svn.txt
1613
mod_get_tags.txt
876
mod_get_test.txt
1283
mod_get_too_many_redirects.txt
233
mod_get_trailing_slash.txt
1197
mod_get_update_unrelated_sum.txt
3603
mod_get_upgrade.txt
1200
mod_get_upgrade_pseudo.txt
2294
mod_get_wild.txt
1979
mod_getmode_vendor.txt
1075
mod_getx.txt
400
mod_git_export_subst.txt
549
mod_go_version.txt
1696
mod_go_version_missing.txt
3182
mod_go_version_mixed.txt
646
mod_gobuild_import.txt
3032
mod_gofmt_invalid.txt
207
mod_gomodcache.txt
2288
mod_gonoproxy.txt
1667
mod_gopkg_unstable.txt
428
mod_goroot_errors.txt
1861
mod_graph.txt
207
mod_graph_version.txt
3372
mod_help.txt
132
mod_import.txt
377
mod_import_cycle.txt
644
mod_import_issue41113.txt
932
mod_import_issue42891.txt
250
mod_import_meta.txt
1176
mod_import_mod.txt
143
mod_import_v1suffix.txt
187
mod_in_testdata_dir.txt
972
mod_indirect.txt
1327
mod_indirect_main.txt
1417
mod_indirect_nospace.txt
516
mod_indirect_tidy.txt
804
mod_init_dep.txt
633
mod_init_empty.txt
192
mod_init_glide.txt
595
mod_init_path.txt
248
mod_init_tidy.txt
955
mod_install_hint.txt
239
mod_install_pkg_version.txt
8016
mod_install_versioned.txt
264
mod_internal.txt
2499
mod_invalid_path.txt
1717
mod_invalid_path_dotname.txt
1163
mod_invalid_path_plus.txt
835
mod_invalid_version.txt
13510
mod_issue35317.txt
247
mod_lazy_consistency.txt
1955
mod_lazy_downgrade.txt
3807
mod_lazy_import_allmod.txt
3206
mod_lazy_new_import.txt
3059
mod_lazy_test_horizon.txt
1985
mod_lazy_test_of_test_dep.txt
5288
mod_list.txt
2091
mod_list_bad_import.txt
2417
mod_list_compiled_concurrent.txt
1692
mod_list_deprecated.txt
1885
mod_list_deprecated_replace.txt
2325
mod_list_dir.txt
837
mod_list_direct.txt
518
mod_list_e_readonly.txt
449
mod_list_pseudo.txt
1746
mod_list_replace_dir.txt
661
mod_list_retract.txt
4716
mod_list_std.txt
2726
mod_list_sums.txt
1336
mod_list_test.txt
704
mod_list_test_cycle.txt
582
mod_list_update_nolatest.txt
2043
mod_list_upgrade.txt
196
mod_list_upgrade_pseudo.txt
785
mod_load_badchain.txt
3838
mod_load_badmod.txt
524
mod_load_badzip.txt
406
mod_load_replace_mismatch.txt
618
mod_local_replace.txt
329
mod_missing_repo.txt
512
mod_missingpkg_prerelease.txt
357
mod_modinfo.txt
1851
mod_multirepo.txt
895
mod_nomod.txt
644
mod_notall.txt
2179
mod_off.txt
1054
mod_off_init.txt
216
mod_outside.txt
12596
mod_overlay.txt
7913
mod_patterns.txt
2444
mod_patterns_vendor.txt
528
mod_permissions.txt
1271
mod_prefer_compatible.txt
2662
mod_proxy_errors.txt
697
mod_proxy_https.txt
475
mod_proxy_invalid.txt
413
mod_proxy_list.txt
1177
mod_pseudo_cache.txt
1152
mod_query.txt
1311
mod_query_empty.txt
2780
mod_query_exclude.txt
1160
mod_query_main.txt
1627
mod_readonly.txt
3168
mod_replace.txt
3808
mod_replace_gopkgin.txt
2482
mod_replace_import.txt
2791
mod_replace_readonly.txt
1900
mod_require_exclude.txt
2728
mod_retention.txt
2879
mod_retract.txt
1451
mod_retract_fix_version.txt
1172
mod_retract_incompatible.txt
722
mod_retract_pseudo_base.txt
2482
mod_retract_rationale.txt
3317
mod_retract_rename.txt
872
mod_retract_replace.txt
2072
mod_retract_versions.txt
981
mod_run_nonmain.txt
439
mod_run_path.txt
359
mod_run_pkg_version.txt
3688
mod_run_pkgerror.txt
877
mod_std_vendor.txt
1795
mod_string_alias.txt
146
mod_sum_ambiguous.txt
2971
mod_sum_lookup.txt
862
mod_sum_readonly.txt
4011
mod_sum_replaced.txt
683
mod_sumdb.txt
1258
mod_sumdb_cache.txt
1114
mod_sumdb_file_path.txt
2353
mod_sumdb_golang.txt
1856
mod_sumdb_proxy.txt
1914
mod_symlink.txt
1090
mod_symlink_dotgo.txt
372
mod_tagged_import_cycle.txt
2296
mod_test.txt
2251
mod_test_cached.txt
1504
mod_test_files.txt
1125
mod_tidy.txt
897
mod_tidy_compat.txt
2562
mod_tidy_compat_added.txt
2441
mod_tidy_compat_ambiguous.txt
3167
mod_tidy_compat_deleted.txt
3108
mod_tidy_compat_implicit.txt
4546
mod_tidy_compat_incompatible.txt
4565
mod_tidy_compat_irrelevant.txt
2887
mod_tidy_convergence.txt
5596
mod_tidy_convergence_loop.txt
9381
mod_tidy_cycle.txt
949
mod_tidy_error.txt
1118
mod_tidy_indirect.txt
1161
mod_tidy_lazy_self.txt
1498
mod_tidy_newroot.txt
1496
mod_tidy_old.txt
1414
mod_tidy_oldgo.txt
489
mod_tidy_quote.txt
429
mod_tidy_replace.txt
3083
mod_tidy_replace_old.txt
1000
mod_tidy_sum.txt
748
mod_tidy_symlink_issue35941.txt
898
mod_tidy_too_new.txt
1323
mod_tidy_version.txt
4968
mod_update_sum_readonly.txt
1183
mod_upgrade_patch.txt
3749
mod_vcs_missing.txt
502
mod_vendor.txt
6378
mod_vendor_auto.txt
9590
mod_vendor_build.txt
934
mod_vendor_embed.txt
3461
mod_vendor_gomod.txt
633
mod_vendor_goversion.txt
2391
mod_vendor_issue46867.txt
675
mod_vendor_nodeps.txt
118
mod_vendor_redundant_requirement.txt
507
mod_vendor_replace.txt
1831
mod_vendor_trimpath.txt
1155
mod_vendor_unused.txt
1469
mod_vendor_unused_only.txt
372
mod_verify.txt
2464
mod_versions.txt
571
mod_why.txt
2690
modfile_flag.txt
2459
noncanonical_import.txt
356
pattern_syntax_error.txt
185
prevent_sys_unix_import.txt
175
run_dirs.txt
266
run_hello.txt
140
run_hello_pkg.txt
186
run_internal.txt
1171
run_issue11709.txt
217
run_set_executable_name.txt
627
run_vendor.txt
532
run_wildcard.txt
223
script_wait.txt
591
std_vendor.txt
966
test_bad_example.txt
234
test_badtest.txt
805
test_benchmark_chatty_fail.txt
739
test_benchmark_chatty_success.txt
629
test_benchmark_fatal.txt
339
test_benchmark_labels.txt
412
test_benchmark_timeout.txt
265
test_build_failure.txt
371
test_cache_inputs.txt
5898
test_chatty_fail.txt
719
test_chatty_parallel_fail.txt
2856
test_chatty_parallel_success.txt
2680
test_chatty_parallel_success_sleepy.txt
886
test_chatty_success.txt
937
test_cleanup_failnow.txt
1398
test_compile_binary.txt
136
test_compile_tempfile.txt
271
test_deadline.txt
1267
test_empty.txt
1073
test_env_term.txt
260
test_example_goexit.txt
403
test_exit.txt
2519
test_fail_fast.txt
3354
test_finished_subtest_goroutines.txt
1064
test_flag.txt
1000
test_flags.txt
4047
test_generated_main.txt
924
test_go111module_cache.txt
206
test_import_error_stack.txt
997
test_json.txt
2012
test_json_exit.txt
2034
test_json_interleaved.txt
581
test_json_panic_exit.txt
1224
test_main.txt
2212
test_main_archive.txt
436
test_main_panic.txt
603
test_main_twice.txt
511
test_match_benchmark_labels.txt
577
test_match_no_benchmarks.txt
296
test_match_no_subtests.txt
260
test_match_no_subtests_failure.txt
381
test_match_no_subtests_parallel.txt
472
test_match_no_tests.txt
198
test_match_no_tests_build_failure.txt
385
test_match_no_tests_with_subtests.txt
261
test_match_only_benchmarks.txt
283
test_match_only_example.txt
583
test_match_only_subtests.txt
295
test_match_only_subtests_parallel.txt
515
test_match_only_tests.txt
239
test_minus_n.txt
204
test_no_run_example.txt
496
test_no_tests.txt
224
test_overlay.txt
393
test_parallel_number.txt
608
test_profile.txt
628
test_race.txt
640
test_race_cover_mode_issue20435.txt
680
test_race_install.txt
346
test_race_install_cgo.txt
1844
test_rebuildall.txt
328
test_regexps.txt
1965
test_relative_cmdline.txt
666
test_relative_import.txt
443
test_relative_import_dash_i.txt
581
test_script_cmdcd.txt
272
test_shuffle.txt
5300
test_source_order.txt
992
test_status.txt
220
test_syntax_error_says_fail.txt
534
test_timeout.txt
448
test_trimpath.txt
657
test_trimpath_main.txt
477
test_trimpath_test_suffix.txt
539
test_vendor.txt
1000
test_vet.txt
1426
test_write_profiles_on_timeout.txt
360
test_xtestonly_works.txt
357
testing_issue40908.txt
336
toolexec.txt
3879
vendor_complex.txt
1234
vendor_gopath_issue11409.txt
977
vendor_import.txt
1997
vendor_import_missing.txt
122
vendor_import_wrong.txt
340
vendor_issue12156.txt
398
vendor_list_issue11977.txt
642
vendor_resolve.txt
237
vendor_test_issue11864.txt
617
vendor_test_issue14613.txt
743
version.txt
1461
version_goexperiment.txt
376
version_replace.txt
992
vet.txt
799
vet_asm.txt
583
vet_deps.txt
354
vet_flags.txt
2843
vet_internal.txt
1525