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

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.