tree: 4584f953d5ea0d11dba6520be1a9e962d2490687 [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. makenew.go
  185. mallocfin.go
  186. map.go
  187. map1.go
  188. maplinear.go
  189. method.go
  190. method1.go
  191. method2.go
  192. method3.go
  193. method4.go
  194. method5.go
  195. named.go
  196. named1.go
  197. nil.go
  198. nilcheck.go
  199. nilptr.go
  200. nilptr2.go
  201. nilptr3.go
  202. nilptr4.go
  203. nosplit.go
  204. notinheap.go
  205. notinheap2.go
  206. nowritebarrier.go
  207. nul1.go
  208. opt_branchlikely.go
  209. parentype.go
  210. peano.go
  211. phiopt.go
  212. print.go
  213. print.out
  214. printbig.go
  215. printbig.out
  216. prove.go
  217. range.go
  218. README.md
  219. recover.go
  220. recover1.go
  221. recover2.go
  222. recover3.go
  223. recover4.go
  224. recover5.go
  225. reflectmethod1.go
  226. reflectmethod2.go
  227. reflectmethod3.go
  228. reflectmethod4.go
  229. rename.go
  230. rename1.go
  231. reorder.go
  232. reorder2.go
  233. return.go
  234. rotate.go
  235. rotate0.go
  236. rotate1.go
  237. rotate2.go
  238. rotate3.go
  239. run.go
  240. rune.go
  241. runtime.go
  242. shift1.go
  243. shift2.go
  244. sieve.go
  245. sigchld.go
  246. sigchld.out
  247. simassign.go
  248. sinit.go
  249. sinit_run.go
  250. sizeof.go
  251. slice3.go
  252. slice3err.go
  253. slicecap.go
  254. sliceopt.go
  255. solitaire.go
  256. stack.go
  257. strength.go
  258. string_lit.go
  259. stringrange.go
  260. struct0.go
  261. switch.go
  262. switch2.go
  263. switch3.go
  264. switch4.go
  265. switch5.go
  266. switch6.go
  267. switch7.go
  268. tinyfin.go
  269. torture.go
  270. turing.go
  271. typecheck.go
  272. typecheckloop.go
  273. typeswitch.go
  274. typeswitch1.go
  275. typeswitch2.go
  276. typeswitch3.go
  277. uintptrescapes.go
  278. uintptrescapes2.go
  279. undef.go
  280. utf.go
  281. varerr.go
  282. varinit.go
  283. writebarrier.go
  284. 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.