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