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