Commit Graph
250 Commits
Author SHA1 Message Date
sashakoshka 0f626b2e93 generate: Fix array encoding not writing length or item tag properly 2025-07-20 23:19:21 -04:00
sashakoshka 272e47224d generate: Make output of testGenerateRun easier to compare 2025-07-20 23:18:36 -04:00
sashakoshka 2c57423838 generate: Fix encoding of table length field 2025-07-20 10:26:29 -04:00
sashakoshka e2b9e809a8 generate: Fix TestGenerateRun 2025-07-20 10:25:53 -04:00
sashakoshka 7e8b272ef0 generate: And now for an actual use of testGenerateRun 2025-07-19 06:24:30 -04:00
sashakoshka a257902705 generate: Flush the buffer before trying to compare it 2025-07-17 14:47:23 -04:00
sashakoshka 4955f66ad6 generate: testEncode uses snakes now 2025-07-17 14:06:05 -04:00
sashakoshka f646207ab1 generate: Use newTemporarVar in more places 2025-07-17 11:28:53 -04:00
sashakoshka b50a199842 generate: Fix the testEncode function 2025-07-17 11:19:57 -04:00
sashakoshka b826cbf83e generate: The test now compiles 2025-07-17 10:26:31 -04:00
sashakoshka b73f9fa7ce generate: Implement decoding (untested) 2025-07-16 22:57:12 -04:00
sashakoshka d3d7b07a74 generate: Emit stub for message decoding function 2025-07-12 20:01:42 -04:00
sashakoshka daa6a44179 generate: Generate Method method 2025-07-12 19:37:58 -04:00
sashakoshka af7669c783 generate: Fix more nonsense surrounding named types 2025-07-11 20:08:43 -04:00
sashakoshka 2305814e10 tape: Add StringTag 2025-07-10 21:56:38 -04:00
sashakoshka 5a3296a842 generate: Parse primitive types into actual types rather than named types 2025-07-10 21:53:21 -04:00
sashakoshka 3bf365a7a9 generate: Fix more semantic errors in the generated code 2025-07-08 21:50:29 -04:00
sashakoshka e48be0bc15 generate: Fix more semantic issues with generated code 2025-07-08 21:32:34 -04:00
sashakoshka a210f6112c generate: Fix more semantic issues in generated code 2025-07-08 20:35:11 -04:00
sashakoshka 9ff317d443 generate: Change comment so it gets detected by the regex for generated files 2025-07-08 15:44:24 -04:00
sashakoshka cdba8ee601 generate: Fix a bunch of semantic issues with the generated code 2025-07-08 14:52:05 -04:00
sashakoshka e75d7534c1 generate: Fix syntax errors in generated code 2025-07-08 12:01:21 -04:00
sashakoshka 8a0ae9b03f generate: Update tests to account for new changes 2025-07-08 11:39:37 -04:00
sashakoshka 9bc90b0e17 generate: What the fuck is a teibibyte 2025-07-08 11:39:18 -04:00
sashakoshka c70c23d137 generate: Fix testGenerateRun so that it actually works 2025-07-08 11:38:00 -04:00
sashakoshka a9d5bb83a2 generate: Add framework for testing output of generated code 2025-07-07 16:00:25 -04:00
sashakoshka f1df5fa84d generate: Add stub return to generateDecodeValue so it compiles 2025-07-07 15:13:18 -04:00
sashakoshka 76a8f9444a tape: Ignore type names when encoding primitives using reflection 2025-07-05 22:10:55 -04:00
sashakoshka 0f20c4cdab tape: Fix TestEncodeDecodeAny using int instead of uint32 2025-07-05 19:14:36 -04:00
sashakoshka 1b82f2cd83 tape: Use tu.Describe() in tests 2025-07-05 18:47:57 -04:00
sashakoshka 6ba70ed046 internal/testutil: Create function to closely examine any data 2025-07-05 18:47:08 -04:00
sashakoshka c118a4d7ef tape: Change name of test to TestEncodeDecodeAnyTable 2025-07-04 14:30:23 -04:00
sashakoshka 877698d402 tape: Remove print statements 2025-07-04 14:18:56 -04:00
sashakoshka 5989a82bee tape: Fix negative slice length 2025-07-04 14:18:30 -04:00
sashakoshka c8a2f03ca1 tape: Fix peekSlice not using the correct tag 2025-07-04 12:22:49 -04:00
sashakoshka 07fc77c83e tape: WIP 2025-07-02 06:25:24 -04:00
sashakoshka 2138d47f07 tape: Flush writer after encoding for testing 2025-06-29 13:22:46 -04:00
sashakoshka e9633770ad internal/testutil: Formatting fix 2025-06-29 13:22:21 -04:00
sashakoshka dcf923b1f3 internal/testutil: Snake.String and HexBytes return "EMPTY" when input is empty 2025-06-29 11:06:58 -04:00
sashakoshka 8f8cd91b5d tape: Fix usage of Encoder/Decoder in dynamic tests 2025-06-29 10:30:32 -04:00
sashakoshka 81ac10508b tape: Change how slice skeletons are generated, support nested OTAs 2025-06-29 10:27:40 -04:00
sashakoshka 4930215166 tape: Make decoder inherit bufio.Writer 2025-06-28 11:24:32 -04:00
sashakoshka e1f58a194a tape: In progress testing of dynamic encoding/decoding 2025-06-28 06:24:44 -04:00
sashakoshka 37eccc91c0 tape: Progress on dynamically decoding OTAs 2025-06-28 06:23:51 -04:00
sashakoshka 08fe3d45dd tape: Encoder inherits bufio.Writer, need to do same for decoder 2025-06-28 06:23:18 -04:00
sashakoshka 3eb826735b tape: Send reflect values where possible instead of pointers 2025-06-27 19:05:17 -04:00
sashakoshka 2a4e88d949 tape: Fix size decoding math 2025-06-27 17:04:20 -04:00
sashakoshka aa718cfe9f tape: DecodeAny only returns an error when there is one 2025-06-27 14:03:49 -04:00
sashakoshka b174015319 tape: Fix KTV decoding not recognizing the any type 2025-06-27 14:02:38 -04:00
sashakoshka e16fec3a81 tape: Fixes to dynamic encoding 2025-06-24 16:08:35 -04:00