Go Tests
Overview:
-
If a test runs beyond the timeout threshold (currently 10 seconds) a single line error is attempted to be shown, with the ending (timed out)
-
The tests are chosen from the go repo if they have the meta data at the top equaling:
runorrunoutput. -
This current test suite is focused on the language specification and is good quality assurance for it, however it does not attempt to test the coverage of the go standard library. A seperate test suite will need to be created for that purpose in the future (will use the testing std package).
-
To run this yourself run
haxe tests.hxmlhave hashlink setup, and runhl tests.hlit will give an output in terminal and during running it will append content into a filetests.txtthat is the output for the Results section.
Results:
- [x] Alias1
- [x] Align
- [x] Append
- [x] Armimm
- [x] Atomicload
- [ ] Bigalg - Int64Helper.hx:53: characters 5-10 : Uncaught exception NumberFormatError
- [ ] Bigmap - GoArray.hx:36: characters 4-9 : Uncaught exception array out of bounds, index: 0 length: 0
- [ ] Blank - Blank.hx:117: characters 9-11 : Type name should start with an uppercase letter
- [x] Bom
- [x] Char_lit
- [ ] Clearfat - Clearfat.hx:69: characters 15-39 : Module stdgo.bytes.Bytes does not define type Buffer
- [ ] Closure - Closure.hx:207: characters 31-67 : stdgo.runtime.MemStats does not have a constructor
- [x] Closure1
- [ ] Closure2 - Closure2.hx:196: characters 19-21 : command_line_arguments.Y_main_4 has no field _v
- [x] Closure4
- [ ] Complit - Complit.hx:226: characters 68-71 : stdgo.GoArray<stdgo.GoInt> has no field cap
- [x] Compos
- [ ] Const - Const.hx:39: characters 22-28 : Float should be Int
- [ ] Const3 - Const3.hx:57: characters 14-65 : stdgo.GoUInt64 should be stdgo.GoFloat64
- [ ] Const4 - Const4.hx:20: characters 87-89 : String should be stdgo.GoArray<stdgo.GoInt>
- [ ] Convert - Convert.hx:14: characters 41-49 : () -> stdgo.GoInt cannot be constructed
- [ ] ConvT2X - ConvT2X.hx:113: characters 9-40 : Unknown<0> should be stdgo.GoString -> Unknown<0>
- [ ] Copy - Copy.hx:248: characters 21-24 : Unknown identifier : my8
- [x] Crlf
- [ ] Ddd - Ddd.hx:124: characters 37-41 : haxe.Rest<stdgo.GoInt> should be stdgo.Slice<stdgo.GoInt>
- [x] Decl
- [ ] Defer - Defer.hx:99: characters 9-14 : Uncaught exception defer
- [x] Deferfin
- [x] Defernil
- [ ] Deferprint - Deferprint.hx:28: characters 45-47 : String should be stdgo.GoInt
- [ ] Divide - Divide.hx:23: characters 13-18 : Uncaught exception divide
- [ ] Divmod - Go.hx:622: characters 16-33 : Unknown identifier : recover_exception
- [x] Env
- [ ] Escape - Escape.hx:445: characters 17-18 : Unknown identifier : _
- [x] Escape3
- [ ] Finprofiled - Go.hx:55: characters 20-28 : stdgo.runtime.MemProfileRecord does not have a constructor
- [x] Floatcmp
- [ ] Float_lit (timed out)
- [ ] Float_lit2 - Float_lit2.hx:157: characters 8-34 : Float should be stdgo.IntegerType
- [x] For_
- [ ] Func - Func.hx:30: characters 38-49 : stdgo.GoFloat32 should be stdgo.GoInt
- [ ] Func5 - Func5.hx:101: characters 9-14 : Uncaught exception fail
- [x] Func6
- [x] Func7
- [x] Func8
- [x] Gc
- [x] Gc1
- [ ] Gcstring - Gcstring.hx:81: characters 59-79 : Not enough arguments, expected obj:stdgo.PointerData<stdgo.GoInt>
- [ ] Heapsampling - Heapsampling.hx:327: characters 81-85 : Object requires fields: value, key
- [x] Helloworld
- [x] If_
- [ ] Indirect - Indirect.hx:13: characters 70-72 : String should be stdgo.GoInt
- [ ] Init1 - Init1.hx:60: characters 31-67 : stdgo.runtime.MemStats does not have a constructor
- [ ] Initcomma - Initcomma.hx:98: characters 9-14 : Uncaught exception fail
- [ ] Initempty - Initempty.hx:63: characters 18-23 : Duplicate module field declaration : command_line_arguments.Initempty._init
- [ ] Inline_literal - Inline_literal.hx:44: characters 12-33 : Module stdgo.reflect.Reflect does not define type Reflect
- [ ] Intcvt (timed out)
- [x] Int_lit
- [ ] Iota - Iota.hx:121: characters 20-73 : stdgo.IntegerType should be stdgo.GoString
- [ ] Literal - Literal.hx:374: character 25 : Invalid escape sequence \3. Values greater than \177 are not allowed. Use \u00ff instead.
- [ ] Literal2 - Literal2.hx:102: characters 43-47 : Expected , or )
- [ ] Makeslice - Makeslice.hx:143: characters 44-55 : stdgo.GoUInt64 should be stdgo.GoInt
- [ ] Map_ (timed out)
- [x] Mapclear
- [ ] Method3 - Method3.hx:46: characters 15-22 : command_line_arguments.I does not have a constructor
- [ ] Nilptr - Nilptr.hx:124: characters 11-30 : Module stdgo.unsafe.Unsafe does not define type Unsafe
- [ ] Peano (timed out)
- [x] Print
- [x] Printbig
- [ ] Range - Range.hx:117: characters 9-10 : Unknown identifier : _
- [ ] Recover1 - Go.hx:622: characters 16-33 : Unknown identifier : recover_exception
- [ ] Reflectmethod1 - Uncaught exception Cannot call null
- [ ] Reflectmethod2 - Reflectmethod2.hx:2: characters 8-29 : Module stdgo.reflect.Reflect does not define type Reflect
- [ ] Reflectmethod3 - Reflectmethod3.hx:24: characters 40-68 : Module stdgo.reflect.Reflect does not define type Method
- [ ] Reflectmethod4 - Reflectmethod4.hx:32: characters 7-28 : Module stdgo.reflect.Reflect does not define type Reflect
- [ ] Reflectmethod5 - Reflectmethod5.hx:34: characters 17-38 : Module stdgo.reflect.Reflect does not define type Reflect
- [ ] Reflectmethod6 - Reflectmethod6.hx:34: characters 17-38 : Module stdgo.reflect.Reflect does not define type Reflect
- [ ] Rename - Rename.hx:50: characters 15-20 : Unexpected false
- [ ] Reorder - Go.hx:606: characters 11-23 : stdgo.IntegerType has no field is_pointer
- [ ] Reorder2 - Reorder2.hx:67: characters 9-17 : command_line_arguments.T1 should be command_line_arguments.I
- [ ] Simassign - Simassign.hx:171: characters 28-38 : { v : stdgo.GoInt, u : stdgo.GoInt } should be stdgo.GoInt
- [ ] Sizeof - Sizeof.hx:306: characters 52-53 : command_line_arguments.T2 has no field c
- [ ] Slice3 - Slice3.hx:2: characters 8-19 : Type not found : bufio.Bufio
- [ ] Slicecap - Go.hx:606: characters 11-23 : stdgo.GoUIntptr has no field is_pointer
- [x] Stack
- [ ] Stackobj2 - Stackobj2.hx:162: characters 36-46 : { _n : stdgo.GoInt64 } should be Null<stdgo.GoInt64>
- [ ] Stackobj3 - Stackobj3.hx:131: characters 9-14 : Uncaught exception bad liveness
- [ ] Strcopy - Strcopy.hx:26: characters 247-281 : Module stdgo.reflect.Reflect does not define type StringHeader
- [ ] Strength - Strength.hx:57: characters 39-42 : Expected ) or , or :
- [ ] Stringrange - Stringrange.hx:67: character 28 : Invalid escape sequence \x. Values greater than \x7f are not allowed. Use \u00ca instead.
- [ ] String_lit - String_lit.hx:20: character 27 : Invalid escape sequence \x. Values greater than \x7f are not allowed. Use \u00FF instead.
- [ ] Struct0 - Go.hx:622: characters 16-33 : Unknown identifier : recover_exception
- [ ] Switch_ - Switch_.hx:711: character 9 : Invalid character '#'
- [x] Tinyfin
- [x] Turing
- [ ] Typeswitch - Typeswitch.hx:204: characters 38-39 : Unknown identifier : x
- [ ] Typeswitch1 - Typeswitch1.hx:63: characters 67-69 : Unknown identifier : xx
- [ ] Uintptrescapes3 - Uintptrescapes3.hx:48: characters 31-58 : Module stdgo.unsafe.Unsafe does not define type Pointer
- [ ] Utf - Utf.hx:2: characters 8-31 : Type not found : stdgo.unicode.utf8.Utf8
- [x] Varinit
- [ ] Winbatch - Winbatch.hx:85: characters 5-67 : Unexpected null
PASSING: 33/101