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