tree: 64d867db9c50efa216372c215cba60591eb043ff [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. defererrcheck.go
  75. deferfin.go
  76. defernil.go
  77. deferprint.go
  78. deferprint.out
  79. devirt.go
  80. directive.go
  81. divide.go
  82. divmod.go
  83. dwarf/
  84. empty.go
  85. env.go
  86. eof.go
  87. eof1.go
  88. escape.go
  89. escape2.go
  90. escape2n.go
  91. escape3.go
  92. escape4.go
  93. escape5.go
  94. escape_array.go
  95. escape_calls.go
  96. escape_closure.go
  97. escape_field.go
  98. escape_goto.go
  99. escape_hash_maphash.go
  100. escape_iface.go
  101. escape_indir.go
  102. escape_level.go
  103. escape_map.go
  104. escape_param.go
  105. escape_runtime_atomic.go
  106. escape_selfassign.go
  107. escape_slice.go
  108. escape_struct_param1.go
  109. escape_struct_param2.go
  110. escape_struct_return.go
  111. escape_sync_atomic.go
  112. escape_unsafe.go
  113. fibo.go
  114. finprofiled.go
  115. fixedbugs/
  116. float_lit.go
  117. float_lit2.go
  118. float_lit3.go
  119. floatcmp.go
  120. for.go
  121. func.go
  122. func1.go
  123. func2.go
  124. func3.go
  125. func4.go
  126. func5.go
  127. func6.go
  128. func7.go
  129. func8.go
  130. funcdup.go
  131. funcdup2.go
  132. gc.go
  133. gc1.go
  134. gc2.go
  135. gcgort.go
  136. gcstring.go
  137. goprint.go
  138. goprint.out
  139. goto.go
  140. heapsampling.go
  141. helloworld.go
  142. helloworld.out
  143. if.go
  144. import.go
  145. import1.go
  146. import2.dir/
  147. import2.go
  148. import4.dir/
  149. import4.go
  150. import5.go
  151. import6.go
  152. index.go
  153. index0.go
  154. index1.go
  155. index2.go
  156. indirect.go
  157. indirect1.go
  158. init.go
  159. init1.go
  160. initcomma.go
  161. initempty.go
  162. initialize.go
  163. initializerr.go
  164. initloop.go
  165. inline.go
  166. inline_big.go
  167. inline_caller.go
  168. inline_callers.go
  169. inline_literal.go
  170. inline_math_bits_rotate.go
  171. inline_sync.go
  172. inline_variadic.go
  173. int_lit.go
  174. intcvt.go
  175. interface/
  176. intrinsic.dir/
  177. intrinsic.go
  178. intrinsic_atomic.go
  179. iota.go
  180. ken/
  181. label.go
  182. label1.go
  183. linkmain.go
  184. linkmain_run.go
  185. linkname.dir/
  186. linkname.go
  187. linkobj.go
  188. linkx.go
  189. linkx_run.go
  190. literal.go
  191. literal2.go
  192. live.go
  193. live1.go
  194. live2.go
  195. live_syscall.go
  196. locklinear.go
  197. loopbce.go
  198. makechan.go
  199. makemap.go
  200. makenew.go
  201. makeslice.go
  202. mallocfin.go
  203. map.go
  204. map1.go
  205. mapclear.go
  206. maplinear.go
  207. mergemul.go
  208. method.go
  209. method1.go
  210. method2.go
  211. method3.go
  212. method4.dir/
  213. method4.go
  214. method5.go
  215. method6.go
  216. method7.go
  217. named.go
  218. named1.go
  219. nil.go
  220. nilcheck.go
  221. nilptr.go
  222. nilptr2.go
  223. nilptr3.go
  224. nilptr4.go
  225. nilptr5.go
  226. nilptr5_aix.go
  227. nilptr5_wasm.go
  228. nilptr_aix.go
  229. nosplit.go
  230. notinheap.go
  231. notinheap2.go
  232. notinheap3.go
  233. nowritebarrier.go
  234. nul1.go
  235. oldescape_linkname.dir/
  236. opt_branchlikely.go
  237. parentype.go
  238. peano.go
  239. phiopt.go
  240. print.go
  241. print.out
  242. printbig.go
  243. printbig.out
  244. prove.go
  245. range.go
  246. recover.go
  247. recover1.go
  248. recover2.go
  249. recover3.go
  250. recover4.go
  251. recover5.go
  252. reflectmethod1.go
  253. reflectmethod2.go
  254. reflectmethod3.go
  255. reflectmethod4.go
  256. reflectmethod5.go
  257. reflectmethod6.go
  258. rename.go
  259. rename1.go
  260. reorder.go
  261. reorder2.go
  262. retjmp.dir/
  263. retjmp.go
  264. return.go
  265. rotate.go
  266. rotate0.go
  267. rotate1.go
  268. rotate2.go
  269. rotate3.go
  270. run.go
  271. rune.go
  272. runtime.go
  273. runtime/
  274. shift1.go
  275. shift2.go
  276. sieve.go
  277. sigchld.go
  278. sigchld.out
  279. simassign.go
  280. sinit.go
  281. sinit_run.go
  282. sizeof.go
  283. slice3.go
  284. slice3err.go
  285. slicecap.go
  286. sliceopt.go
  287. solitaire.go
  288. stack.go
  289. stackobj.go
  290. stackobj2.go
  291. stackobj3.go
  292. strcopy.go
  293. strength.go
  294. stress/
  295. string_lit.go
  296. stringrange.go
  297. struct0.go
  298. switch.go
  299. switch2.go
  300. switch3.go
  301. switch4.go
  302. switch5.go
  303. switch6.go
  304. switch7.go
  305. syntax/
  306. tinyfin.go
  307. torture.go
  308. turing.go
  309. typecheck.go
  310. typecheckloop.go
  311. typeswitch.go
  312. typeswitch1.go
  313. typeswitch2.go
  314. typeswitch2b.go
  315. typeswitch3.go
  316. uintptrescapes.dir/
  317. uintptrescapes.go
  318. uintptrescapes2.go
  319. uintptrescapes3.go
  320. undef.go
  321. utf.go
  322. varerr.go
  323. varinit.go
  324. winbatch.go
  325. writebarrier.go
  326. 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.