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