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