tree: 0d59189734ded51c7c7ccd8012b25868c7cfaf04 [path history] [tgz]
  1. 235.go
  2. 64bit.go
  3. README.md
  4. alg.go
  5. alias.go
  6. alias1.go
  7. alias2.go
  8. alias3.dir/
  9. alias3.go
  10. align.go
  11. append.go
  12. append1.go
  13. args.go
  14. armimm.go
  15. assign.go
  16. assign1.go
  17. atomicload.go
  18. bench/
  19. bigalg.go
  20. bigmap.go
  21. blank.go
  22. blank1.go
  23. bom.go
  24. bombad.go
  25. bounds.go
  26. chan/
  27. chancap.go
  28. chanlinear.go
  29. char_lit.go
  30. char_lit1.go
  31. checkbce.go
  32. clearfat.go
  33. closedchan.go
  34. closure.go
  35. closure1.go
  36. closure2.go
  37. closure3.dir/
  38. closure3.go
  39. closure4.go
  40. cmp.go
  41. cmp6.go
  42. cmplx.go
  43. cmplxdivide.c
  44. cmplxdivide.go
  45. cmplxdivide1.go
  46. codegen/
  47. complit.go
  48. complit1.go
  49. compos.go
  50. const.go
  51. const1.go
  52. const2.go
  53. const3.go
  54. const4.go
  55. const5.go
  56. const6.go
  57. convT2X.go
  58. convert.go
  59. convert1.go
  60. convert2.go
  61. convert3.go
  62. convlit.go
  63. convlit1.go
  64. copy.go
  65. copy1.go
  66. crlf.go
  67. ddd.go
  68. ddd1.go
  69. ddd2.dir/
  70. ddd2.go
  71. decl.go
  72. declbad.go
  73. defer.go
  74. defererrcheck.go
  75. deferfin.go
  76. defernil.go
  77. deferprint.go
  78. deferprint.out
  79. devirt.go
  80. divide.go
  81. divmod.go
  82. dwarf/
  83. empty.go
  84. env.go
  85. eof.go
  86. eof1.go
  87. escape.go
  88. escape2.go
  89. escape2n.go
  90. escape3.go
  91. escape4.go
  92. escape5.go
  93. escape_array.go
  94. escape_calls.go
  95. escape_closure.go
  96. escape_field.go
  97. escape_goto.go
  98. escape_hash_maphash.go
  99. escape_iface.go
  100. escape_indir.go
  101. escape_level.go
  102. escape_map.go
  103. escape_param.go
  104. escape_runtime_atomic.go
  105. escape_selfassign.go
  106. escape_slice.go
  107. escape_struct_param1.go
  108. escape_struct_param2.go
  109. escape_struct_return.go
  110. escape_sync_atomic.go
  111. escape_unsafe.go
  112. fibo.go
  113. finprofiled.go
  114. fixedbugs/
  115. float_lit.go
  116. float_lit2.go
  117. float_lit3.go
  118. floatcmp.go
  119. for.go
  120. func.go
  121. func1.go
  122. func2.go
  123. func3.go
  124. func4.go
  125. func5.go
  126. func6.go
  127. func7.go
  128. func8.go
  129. funcdup.go
  130. funcdup2.go
  131. gc.go
  132. gc1.go
  133. gc2.go
  134. gcgort.go
  135. gcstring.go
  136. goprint.go
  137. goprint.out
  138. goto.go
  139. heapsampling.go
  140. helloworld.go
  141. helloworld.out
  142. if.go
  143. import.go
  144. import1.go
  145. import2.dir/
  146. import2.go
  147. import4.dir/
  148. import4.go
  149. import5.go
  150. import6.go
  151. index.go
  152. index0.go
  153. index1.go
  154. index2.go
  155. indirect.go
  156. indirect1.go
  157. init.go
  158. init1.go
  159. initcomma.go
  160. initempty.go
  161. initialize.go
  162. initializerr.go
  163. initloop.go
  164. inline.go
  165. inline_big.go
  166. inline_caller.go
  167. inline_callers.go
  168. inline_literal.go
  169. inline_math_bits_rotate.go
  170. inline_sync.go
  171. inline_variadic.go
  172. int_lit.go
  173. intcvt.go
  174. interface/
  175. intrinsic.dir/
  176. intrinsic.go
  177. intrinsic_atomic.go
  178. iota.go
  179. ken/
  180. label.go
  181. label1.go
  182. linkmain.go
  183. linkmain_run.go
  184. linkname.dir/
  185. linkname.go
  186. linkobj.go
  187. linkx.go
  188. linkx_run.go
  189. literal.go
  190. literal2.go
  191. live.go
  192. live1.go
  193. live2.go
  194. live_syscall.go
  195. locklinear.go
  196. loopbce.go
  197. makechan.go
  198. makemap.go
  199. makenew.go
  200. mallocfin.go
  201. map.go
  202. map1.go
  203. mapclear.go
  204. maplinear.go
  205. mergemul.go
  206. method.go
  207. method1.go
  208. method2.go
  209. method3.go
  210. method4.dir/
  211. method4.go
  212. method5.go
  213. method6.go
  214. method7.go
  215. named.go
  216. named1.go
  217. nil.go
  218. nilcheck.go
  219. nilptr.go
  220. nilptr2.go
  221. nilptr3.go
  222. nilptr4.go
  223. nilptr5.go
  224. nilptr5_aix.go
  225. nilptr5_wasm.go
  226. nilptr_aix.go
  227. nosplit.go
  228. notinheap.go
  229. notinheap2.go
  230. notinheap3.go
  231. nowritebarrier.go
  232. nul1.go
  233. oldescape_linkname.dir/
  234. opt_branchlikely.go
  235. parentype.go
  236. peano.go
  237. phiopt.go
  238. print.go
  239. print.out
  240. printbig.go
  241. printbig.out
  242. prove.go
  243. range.go
  244. recover.go
  245. recover1.go
  246. recover2.go
  247. recover3.go
  248. recover4.go
  249. recover5.go
  250. reflectmethod1.go
  251. reflectmethod2.go
  252. reflectmethod3.go
  253. reflectmethod4.go
  254. rename.go
  255. rename1.go
  256. reorder.go
  257. reorder2.go
  258. retjmp.dir/
  259. retjmp.go
  260. return.go
  261. rotate.go
  262. rotate0.go
  263. rotate1.go
  264. rotate2.go
  265. rotate3.go
  266. run.go
  267. rune.go
  268. runtime.go
  269. runtime/
  270. shift1.go
  271. shift2.go
  272. sieve.go
  273. sigchld.go
  274. sigchld.out
  275. simassign.go
  276. sinit.go
  277. sinit_run.go
  278. sizeof.go
  279. slice3.go
  280. slice3err.go
  281. slicecap.go
  282. sliceopt.go
  283. solitaire.go
  284. stack.go
  285. stackobj.go
  286. stackobj2.go
  287. stackobj3.go
  288. strcopy.go
  289. strength.go
  290. stress/
  291. string_lit.go
  292. stringrange.go
  293. struct0.go
  294. switch.go
  295. switch2.go
  296. switch3.go
  297. switch4.go
  298. switch5.go
  299. switch6.go
  300. switch7.go
  301. syntax/
  302. tinyfin.go
  303. torture.go
  304. turing.go
  305. typecheck.go
  306. typecheckloop.go
  307. typeswitch.go
  308. typeswitch1.go
  309. typeswitch2.go
  310. typeswitch2b.go
  311. typeswitch3.go
  312. uintptrescapes.dir/
  313. uintptrescapes.go
  314. uintptrescapes2.go
  315. uintptrescapes3.go
  316. undef.go
  317. utf.go
  318. varerr.go
  319. varinit.go
  320. writebarrier.go
  321. zerodivide.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 run run.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.