summaryrefslogtreecommitdiff
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* re s/guuid/uuid/gEuAndreh2025-05-031-187/+187
|
* Implement most of db layerEuAndreh2025-01-172-624/+4987
| | | | | Many missing implementations or tests are marked with FIXME so I don't loose track of holes in the code.
* src/papod.go: Integrate db layer with network, create command handlers, ↵EuAndreh2024-11-042-136/+226
| | | | simplify network loop
* tests/papod.go: Adapt old tests to use TestStart() and Testing()EuAndreh2024-10-311-370/+405
|
* Add initial implementation of some of `queriesT` functionsEuAndreh2024-10-312-107/+1817
|
* src/papod.go: Make private most exported names and start actually ↵EuAndreh2024-10-272-220/+484
| | | | implementing queriesT{}
* Big bundle commit: adjust build project skeleton; include uncommitted codeEuAndreh2024-10-268-70/+126
| | | | | | | | | | | | | | | There was some code that was being slowly tweaked as I'd work or related things on other repositories that wasn't committed step by step, and that now I'd rather include all as a single changeset, single there weren't really separated stages on how it was developed. Other than that, this commit includes adjustments on dependencies API usage, as they changed during my work on them, and adjustments on the build and test system, as I improved how they worked also during work on other projects. As of this commit, the code compiles and the tests pass. I can't recall if this was true before this commit, but it is true now.
* Use "go tool" to build projectEuAndreh2024-08-143-61/+98
|
* go.mod: Include "gobang" dependencyEuAndreh2024-07-261-364/+7
|
* Tweak indentationEuAndreh2024-07-171-119/+108
|
* src/lib.go, tests/lib_test.go: Normaline function argument declarationsEuAndreh2024-07-171-3/+3
|
* src/lib.go, tests/lib_test.go: Tweak indentationEuAndreh2024-07-151-41/+66
|
* Inline gobang package codeEuAndreh2024-07-151-13/+350
|
* src/lib.go: Start writing messages to DBEuAndreh2024-05-271-0/+51
| | | | | Create and test simple code for handling migrations transactionally as files.
* tests/lib_test.go: Add missing importEuAndreh2024-05-231-0/+1
|
* Rename leftover references of "papo" -> "papod"EuAndreh2024-05-231-57/+82
|
* tests/lib_test.go: Group input/expected into "tuples"EuAndreh2024-05-161-237/+330
|
* Move UUID, FatalIf(), events, etc. code to external libEuAndreh2024-05-161-29/+0
|
* Rename source files to "lib.go" and "main.go"EuAndreh2024-05-161-0/+0
|
* src/papod.go: Add message parsing code with some testsEuAndreh2024-05-071-0/+342
|
* Rename from "papo" to "papod"EuAndreh2024-05-061-0/+0
|
* src/papo.go: Add initial server skeletonEuAndreh2024-05-061-2/+25
|
* src/cmd/papo.go: Move code into moduleEuAndreh2024-03-281-1/+1
|
* Node.js -> GoEuAndreh2024-03-2512-1009/+14
|
* src/hero.mjs: Retire codeEuAndreh2024-03-211-2430/+0
|
* tests/rand.c: s/Taken/Derived/EuAndreh2024-03-211-1/+1
|
* src/utils.mjs: Add take() and range()EuAndreh2024-03-201-0/+97
|
* tests/rand.mjs: Add MersenneTwister random number generatorEuAndreh2024-03-203-0/+234
| | | | | | The `tests/rand.c` is also added: a simplified adaptation of the original algorithm implementation in C. A 10k numbers test case shows that the JavaScript version behaves the same that the C one does.
* tests/js/hero.mjs: Fix function orderingEuAndreh2024-03-181-67/+67
|
* src/hero.mjs: Add statusMessage() and statusResponse()EuAndreh2024-03-181-4/+42
|
* src/hero.mjs: Log to stdout instead of stderrEuAndreh2024-03-171-3/+3
| | | | | | | | | | | | | | | | | The first question that this brings is: Is the output of the program useful for a downstream process? Is this logging an *output* of the program? But in this case, the answer is: yes, for both questions. A downstream program could very well be fed the output of the program via a pipe and process it, as the data being emitted is meant to be ingested. So instead of following the default "warnings ought to go to stderr" model, we acknowledge that the data is actually an *out*put, and send it to std*out*.
* tests/js/hero.mjs: Add simple test for now()EuAndreh2024-03-171-0/+11
|
* src/hero.mjs: Use name of CWD as the default name of buildServer()EuAndreh2024-03-171-4/+15
|
* tests/js/hero.mjs: Accept a `headers` optional argument in socketRequest()EuAndreh2024-03-171-1/+2
|
* src/hero.mjs: Include "timestamp" in the logged data objectsEuAndreh2024-03-171-23/+40
|
* src/hero.mjs: Add makeUpgradeListener() (again, now rewritten)EuAndreh2024-03-161-0/+79
|
* src/hero.mjs: use empty object as default value for renderHeaders()EuAndreh2024-03-161-0/+1
|
* tests/js/hero.mjs: Add upgrade case to handleRequest() testEuAndreh2024-03-161-2/+35
|
* src/hero.mjs: Add writeHead() and its helper functionsEuAndreh2024-03-161-0/+76
|
* src/hero.mjs: Remove current makeUpgradeListener() and its helpersEuAndreh2024-03-161-172/+0
|
* src/hero.mjs: findHandler(): learn how to find upgrade routesEuAndreh2024-03-161-24/+63
|
* src/hero.mjs: Add interceptors.websocketHandshake()EuAndreh2024-03-161-2/+71
|
* src/hero.mjs: Add validateUpgrade(), computeHash() and their helper functionsEuAndreh2024-03-161-2/+169
|
* src/hero.mjs: Add "upgrade" and "socket" keys to `req`EuAndreh2024-03-161-9/+18
| | | | Also log on "in-request" the value of "upgrade".
* src/hero.mjs: interceptors.contentType(): Generate body from status when missingEuAndreh2024-03-161-8/+31
|
* src/hero.mjs: Include stacktrace in 500 log entryEuAndreh2024-03-151-2/+4
|
* src/hero.mjs: Add makeUpgradeListener()EuAndreh2024-03-151-0/+60
|
* src/hero.mjs: Add handlerForConnection()EuAndreh2024-03-151-0/+40
|
* src/hero.mjs: Add support for "WEBSOCKET" type of routeEuAndreh2024-03-151-0/+5
|
* src/hero.mjs: Add buildHttpPayload()EuAndreh2024-03-151-0/+48
|