tree: f389734f4eddf1d283c3a7c6ba9aed9ff59ffddc [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. deferfin.go
  75. deferprint.go
  76. deferprint.out
  77. devirt.go
  78. divide.go
  79. divmod.go
  80. dwarf/
  81. empty.go
  82. env.go
  83. eof.go
  84. eof1.go
  85. errchk
  86. escape.go
  87. escape2.go
  88. escape2n.go
  89. escape3.go
  90. escape4.go
  91. escape5.go
  92. escape_array.go
  93. escape_because.go
  94. escape_calls.go
  95. escape_closure.go
  96. escape_field.go
  97. escape_iface.go
  98. escape_indir.go
  99. escape_level.go
  100. escape_map.go
  101. escape_param.go
  102. escape_slice.go
  103. escape_struct_param1.go
  104. escape_struct_param2.go
  105. escape_struct_return.go
  106. fibo.go
  107. finprofiled.go
  108. fixedbugs/
  109. float_lit.go
  110. float_lit2.go
  111. float_lit3.go
  112. floatcmp.go
  113. for.go
  114. func.go
  115. func1.go
  116. func2.go
  117. func3.go
  118. func4.go
  119. func5.go
  120. func6.go
  121. func7.go
  122. func8.go
  123. funcdup.go
  124. funcdup2.go
  125. gc.go
  126. gc1.go
  127. gc2.go
  128. gcgort.go
  129. gcstring.go
  130. goprint.go
  131. goprint.out
  132. goto.go
  133. heapsampling.go
  134. helloworld.go
  135. helloworld.out
  136. if.go
  137. import.go
  138. import1.go
  139. import2.dir/
  140. import2.go
  141. import4.dir/
  142. import4.go
  143. import5.go
  144. import6.go
  145. index.go
  146. index0.go
  147. index1.go
  148. index2.go
  149. indirect.go
  150. indirect1.go
  151. init.go
  152. init1.go
  153. initcomma.go
  154. initialize.go
  155. initializerr.go
  156. initloop.go
  157. inline.go
  158. inline_big.go
  159. inline_caller.go
  160. inline_callers.go
  161. inline_literal.go
  162. inline_variadic.go
  163. int_lit.go
  164. intcvt.go
  165. interface/
  166. intrinsic.dir/
  167. intrinsic.go
  168. intrinsic_atomic.go
  169. iota.go
  170. ken/
  171. label.go
  172. label1.go
  173. linkmain.go
  174. linkmain_run.go
  175. linkname.dir/
  176. linkname.go
  177. linkobj.go
  178. linkx.go
  179. linkx_run.go
  180. literal.go
  181. live.go
  182. live1.go
  183. live2.go
  184. live_syscall.go
  185. locklinear.go
  186. loopbce.go
  187. makechan.go
  188. makemap.go
  189. makenew.go
  190. mallocfin.go
  191. map.go
  192. map1.go
  193. mapclear.go
  194. maplinear.go
  195. mergemul.go
  196. method.go
  197. method1.go
  198. method2.go
  199. method3.go
  200. method4.dir/
  201. method4.go
  202. method5.go
  203. method6.go
  204. method7.go
  205. named.go
  206. named1.go
  207. nil.go
  208. nilcheck.go
  209. nilptr.go
  210. nilptr2.go
  211. nilptr3.go
  212. nilptr3_wasm.go
  213. nilptr4.go
  214. nosplit.go
  215. notinheap.go
  216. notinheap2.go
  217. notinheap3.go
  218. nowritebarrier.go
  219. nul1.go
  220. opt_branchlikely.go
  221. parentype.go
  222. peano.go
  223. phiopt.go
  224. print.go
  225. print.out
  226. printbig.go
  227. printbig.out
  228. prove.go
  229. range.go
  230. recover.go
  231. recover1.go
  232. recover2.go
  233. recover3.go
  234. recover4.go
  235. recover5.go
  236. reflectmethod1.go
  237. reflectmethod2.go
  238. reflectmethod3.go
  239. reflectmethod4.go
  240. rename.go
  241. rename1.go
  242. reorder.go
  243. reorder2.go
  244. retjmp.dir/
  245. retjmp.go
  246. return.go
  247. rotate.go
  248. rotate0.go
  249. rotate1.go
  250. rotate2.go
  251. rotate3.go
  252. run.go
  253. rune.go
  254. runtime.go
  255. safe/
  256. shift1.go
  257. shift2.go
  258. sieve.go
  259. sigchld.go
  260. sigchld.out
  261. simassign.go
  262. sinit.go
  263. sinit_run.go
  264. sizeof.go
  265. slice3.go
  266. slice3err.go
  267. slicecap.go
  268. sliceopt.go
  269. solitaire.go
  270. stack.go
  271. strcopy.go
  272. strength.go
  273. stress/
  274. string_lit.go
  275. stringrange.go
  276. struct0.go
  277. switch.go
  278. switch2.go
  279. switch3.go
  280. switch4.go
  281. switch5.go
  282. switch6.go
  283. switch7.go
  284. syntax/
  285. tinyfin.go
  286. torture.go
  287. turing.go
  288. typecheck.go
  289. typecheckloop.go
  290. typeswitch.go
  291. typeswitch1.go
  292. typeswitch2.go
  293. typeswitch3.go
  294. uintptrescapes.dir/
  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.