tree: b6aa92f33e746dc6254ce2b4d2b8cb4603f1e72e
  1. abi/
  2. alias3.dir/
  3. arenas/
  4. asmhdr.dir/
  5. chan/
  6. closure3.dir/
  7. closure5.dir/
  8. codegen/
  9. ddd2.dir/
  10. dwarf/
  11. fixedbugs/
  12. import2.dir/
  13. import4.dir/
  14. interface/
  15. internal/
  16. intrinsic.dir/
  17. ken/
  18. linkname.dir/
  19. linknameasm.dir/
  20. method4.dir/
  21. retjmp.dir/
  22. simd/
  23. stress/
  24. syntax/
  25. typeparam/
  26. uintptrescapes.dir/
  27. wasmmemsize.dir/
  28. 235.go
  29. 64bit.go
  30. alg.go
  31. alias.go
  32. alias1.go
  33. alias2.go
  34. alias3.go
  35. align.go
  36. append.go
  37. append1.go
  38. args.go
  39. armimm.go
  40. asmhdr.go
  41. assign.go
  42. assign1.go
  43. atomicload.go
  44. bigalg.go
  45. bigmap.go
  46. blank.go
  47. blank1.go
  48. bloop.go
  49. bom.go
  50. bombad.go
  51. bounds.go
  52. cannotassign.go
  53. chancap.go
  54. chanlinear.go
  55. char_lit.go
  56. char_lit1.go
  57. checkbce.go
  58. clear.go
  59. clearfat.go
  60. closedchan.go
  61. closure.go
  62. closure1.go
  63. closure2.go
  64. closure3.go
  65. closure4.go
  66. closure5.go
  67. closure6.go
  68. closure7.go
  69. cmp.go
  70. cmp6.go
  71. cmplx.go
  72. cmplxdivide.c
  73. cmplxdivide.go
  74. cmplxdivide1.go
  75. complit.go
  76. complit1.go
  77. complit2.go
  78. compos.go
  79. const.go
  80. const1.go
  81. const2.go
  82. const3.go
  83. const4.go
  84. const5.go
  85. const6.go
  86. const7.go
  87. const8.go
  88. convert.go
  89. convert1.go
  90. convert2.go
  91. convert3.go
  92. convert4.go
  93. convert5.go
  94. convert5.out
  95. convinline.go
  96. convlit.go
  97. convlit1.go
  98. convT2X.go
  99. copy.go
  100. copy1.go
  101. crlf.go
  102. ddd.go
  103. ddd1.go
  104. ddd2.go
  105. decl.go
  106. declbad.go
  107. defer.go
  108. defererrcheck.go
  109. deferfin.go
  110. defernil.go
  111. deferprint.go
  112. deferprint.out
  113. deferstacktemp.go
  114. devirt.go
  115. devirtualization.go
  116. devirtualization_nil_panics.go
  117. devirtualization_with_type_assertions_interleaved.go
  118. directive.go
  119. directive2.go
  120. divide.go
  121. divmod.go
  122. embedfunc.go
  123. embedvers.go
  124. empty.go
  125. env.go
  126. eof.go
  127. eof1.go
  128. escape.go
  129. escape2.go
  130. escape2n.go
  131. escape3.go
  132. escape4.go
  133. escape5.go
  134. escape6.go
  135. escape_alias.go
  136. escape_array.go
  137. escape_bloop.go
  138. escape_calls.go
  139. escape_closure.go
  140. escape_field.go
  141. escape_goto.go
  142. escape_hash_maphash.go
  143. escape_iface.go
  144. escape_iface_data.go
  145. escape_indir.go
  146. escape_level.go
  147. escape_make_non_const.go
  148. escape_map.go
  149. escape_mutations.go
  150. escape_param.go
  151. escape_reflect.go
  152. escape_runtime_atomic.go
  153. escape_selfassign.go
  154. escape_slice.go
  155. escape_struct_param1.go
  156. escape_struct_param2.go
  157. escape_struct_return.go
  158. escape_sync_atomic.go
  159. escape_unique.go
  160. escape_unsafe.go
  161. fibo.go
  162. finprofiled.go
  163. float_lit.go
  164. float_lit2.go
  165. float_lit3.go
  166. floatcmp.go
  167. for.go
  168. func.go
  169. func1.go
  170. func2.go
  171. func3.go
  172. func4.go
  173. func5.go
  174. func6.go
  175. func7.go
  176. func8.go
  177. funcdup.go
  178. funcdup2.go
  179. fuse.go
  180. gc.go
  181. gc1.go
  182. gc2.go
  183. gcgort.go
  184. gcstring.go
  185. genmeth.go
  186. genmeth1.go
  187. genmeth2.go
  188. goprint.go
  189. goprint.out
  190. goto.go
  191. heapsampling.go
  192. helloworld.go
  193. helloworld.out
  194. if.go
  195. import.go
  196. import1.go
  197. import2.go
  198. import4.go
  199. import5.go
  200. import6.go
  201. index.go
  202. index0.go
  203. index1.go
  204. index2.go
  205. indirect.go
  206. indirect1.go
  207. init.go
  208. init1.go
  209. initcomma.go
  210. initexp.go
  211. initialize.go
  212. initializerr.go
  213. initloop.go
  214. inline.go
  215. inline_big.go
  216. inline_caller.go
  217. inline_callers.go
  218. inline_endian.go
  219. inline_literal.go
  220. inline_math_bits_rotate.go
  221. inline_sync.go
  222. inline_variadic.go
  223. int_lit.go
  224. intcvt.go
  225. intrinsic.go
  226. intrinsic_atomic.go
  227. iota.go
  228. known_bits.go
  229. label.go
  230. label1.go
  231. linkmain.go
  232. linkmain_run.go
  233. linkname.go
  234. linkname3.go
  235. linknameasm.go
  236. linkobj.go
  237. linkx.go
  238. linkx_run.go
  239. literal.go
  240. literal2.go
  241. live.go
  242. live1.go
  243. live2.go
  244. live_regabi.go
  245. live_uintptrkeepalive.go
  246. loopbce.go
  247. mainsig.go
  248. makechan.go
  249. makemap.go
  250. makenew.go
  251. makeslice.go
  252. mallocfin.go
  253. map.go
  254. map1.go
  255. mapclear.go
  256. maplinear.go
  257. maymorestack.go
  258. mergemul.go
  259. method.go
  260. method1.go
  261. method2.go
  262. method3.go
  263. method4.go
  264. method5.go
  265. method6.go
  266. method7.go
  267. named.go
  268. named1.go
  269. newexpr.go
  270. newinline.go
  271. nil.go
  272. nilcheck.go
  273. nilptr.go
  274. nilptr2.go
  275. nilptr3.go
  276. nilptr4.go
  277. nilptr5.go
  278. nilptr5_aix.go
  279. nilptr5_wasm.go
  280. nilptr_aix.go
  281. noinit.go
  282. nosplit.go
  283. nowritebarrier.go
  284. nul1.go
  285. opt_branchlikely.go
  286. parentype.go
  287. peano.go
  288. phiopt.go
  289. print.go
  290. print.out
  291. printbig.go
  292. printbig.out
  293. prove.go
  294. prove_constant_folding.go
  295. prove_invert_loop_with_unused_iterators.go
  296. prove_popcount.go
  297. range.go
  298. range2.go
  299. range3.go
  300. range4.go
  301. rangegen.go
  302. README.md
  303. recover.go
  304. recover1.go
  305. recover2.go
  306. recover3.go
  307. recover4.go
  308. recover5.go
  309. reflectmethod1.go
  310. reflectmethod2.go
  311. reflectmethod3.go
  312. reflectmethod4.go
  313. reflectmethod5.go
  314. reflectmethod6.go
  315. reflectmethod7.go
  316. reflectmethod8.go
  317. rename.go
  318. rename1.go
  319. reorder.go
  320. reorder2.go
  321. retjmp.go
  322. return.go
  323. rotate.go
  324. rotate0.go
  325. rotate1.go
  326. rotate2.go
  327. rotate3.go
  328. rune.go
  329. runtime.go
  330. shift1.go
  331. shift2.go
  332. shift3.go
  333. sieve.go
  334. sigchld.go
  335. sigchld.out
  336. simassign.go
  337. simd.go
  338. simd_inline.go
  339. sizeof.go
  340. slice3.go
  341. slice3err.go
  342. slicecap.go
  343. sliceopt.go
  344. solitaire.go
  345. stack.go
  346. stackobj.go
  347. stackobj2.go
  348. stackobj3.go
  349. strcopy.go
  350. strength.go
  351. string_lit.go
  352. stringrange.go
  353. struct0.go
  354. switch.go
  355. switch2.go
  356. switch3.go
  357. switch4.go
  358. switch5.go
  359. switch6.go
  360. switch7.go
  361. tailcall.go
  362. tighten.go
  363. tinyfin.go
  364. torture.go
  365. turing.go
  366. typecheck.go
  367. typecheckloop.go
  368. typeswitch.go
  369. typeswitch1.go
  370. typeswitch2.go
  371. typeswitch2b.go
  372. typeswitch3.go
  373. uintptrescapes.go
  374. uintptrescapes2.go
  375. uintptrescapes3.go
  376. uintptrkeepalive.go
  377. undef.go
  378. unsafe_slice_data.go
  379. unsafe_string.go
  380. unsafe_string_data.go
  381. unsafebuiltins.go
  382. used.go
  383. utf.go
  384. varerr.go
  385. varinit.go
  386. wasmexport.go
  387. wasmexport2.go
  388. wasmmemsize.go
  389. weak.go
  390. winbatch.go
  391. writebarrier.go
  392. zerodivide.go
  393. zerosize.go
test/README.md

The test directory contains tests of the Go tool chain and runtime. It includes black box tests, regression tests, and error output tests. They are run as part of all.bash.

To run just these tests, execute:

../bin/go test cmd/internal/testdir

To run just tests from specified files in this directory, execute:

../bin/go test cmd/internal/testdir -run='Test/(file1.go|file2.go|...)'

Standard library tests should be written as regular Go tests in the appropriate package.

The tool chain and runtime also have regular Go tests in their packages. The main reasons to add a new test to this directory are:

  • it is most naturally expressed using the test runner; or
  • it is also applicable to gccgo and other Go tool chains.