summaryrefslogtreecommitdiff
path: root/tests/lib_test.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-05-23src/sql/migrations/2024-05-23T10:57:51-03:00-create-messages-table.sql: ↵EuAndreh2-0/+6
Initial SQL sketch
2024-05-23tests/lib_test.go: Add missing importEuAndreh1-0/+1
2024-05-23Makefile: Add missing $(GOFLAGS) for a correct static build of go-sqlite3EuAndreh1-2/+3
2024-05-23Rename leftover references of "papo" -> "papod"EuAndreh6-77/+102
2024-05-16tests/lib_test.go: Group input/expected into "tuples"EuAndreh1-237/+330
2024-05-16Move UUID, FatalIf(), events, etc. code to external libEuAndreh3-302/+22
2024-05-16Makefile: Fix installation of files under $(DATADIR)EuAndreh1-19/+14
2024-05-16Rename source files to "lib.go" and "main.go"EuAndreh4-9/+9
2024-05-07src/papod.go: Add message parsing code with some testsEuAndreh2-13/+496
2024-05-06Rename from "papo" to "papod"EuAndreh4-1/+1
2024-05-06src/papo.go: Add initial server skeletonEuAndreh2-13/+468
2024-04-18Makefile: Normalize alongside other Go projectsEuAndreh8-36/+19
2024-03-30Makefile: add binder instance for port 6667EuAndreh1-4/+7
2024-03-29Makefile: rm both socket filesEuAndreh1-2/+2
2024-03-29Makefile: Reorder commands so we don't need to sleepEuAndreh1-2/+1
2024-03-28go.mod: Unmark go-sqlite3 as indirectEuAndreh1-1/+1
2024-03-28Makefile: s/main.bin/$(NAME).bin/gEuAndreh1-4/+4
2024-03-28Makefile: s/ircd/papo/gEuAndreh1-5/+5
2024-03-28src/static/client.js: Add some stub codeEuAndreh1-0/+1
2024-03-28src/cmd/papo.go: Move code into moduleEuAndreh3-25/+24
2024-03-28Makefile: Adapt "run-*" virtual targetsEuAndreh1-8/+12
2024-03-28Adapt build and installationEuAndreh3-45/+24
2024-03-25Node.js -> GoEuAndreh31-1367/+99
2024-03-21src/hero.mjs: Retire codeEuAndreh4-3129/+16
2024-03-21tests/rand.c: s/Taken/Derived/EuAndreh1-1/+1
2024-03-20src/utils.mjs: Add eq() as an alias for util.isDeepStrictEqualEuAndreh1-0/+5
2024-03-20src/utils.mjs: Add take() and range()EuAndreh2-0/+137
2024-03-20tests/rand.mjs: Add MersenneTwister random number generatorEuAndreh6-2/+249
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.
2024-03-18tests/js/hero.mjs: Fix function orderingEuAndreh1-67/+67
2024-03-18src/hero.mjs: Add statusMessage() and statusResponse()EuAndreh2-20/+56
2024-03-17src/hero.mjs: Log to stdout instead of stderrEuAndreh2-4/+4
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*.
2024-03-17tests/js/hero.mjs: Add simple test for now()EuAndreh2-1/+13
2024-03-17src/hero.mjs: Use name of CWD as the default name of buildServer()EuAndreh2-6/+19
2024-03-17tests/js/hero.mjs: Accept a `headers` optional argument in socketRequest()EuAndreh1-1/+2
2024-03-17src/hero.mjs: Add "stopping-server" logEuAndreh1-0/+11
2024-03-17src/web.mjs: Move the "starting-server" logging into hero when .listen()EuAndreh2-12/+15
2024-03-17src/hero.mjs: Include "timestamp" in the logged data objectsEuAndreh2-29/+51
2024-03-16src/hero.mjs: Explicitly inject "headers" key in reqEuAndreh1-0/+2
2024-03-16src/hero.mjs: Add makeUpgradeListener() (again, now rewritten)EuAndreh2-0/+92
2024-03-16src/hero.mjs: use empty object as default value for renderHeaders()EuAndreh2-1/+2
2024-03-16src/hero.mjs: validateUpgrade(): Add note on 405 caseEuAndreh1-0/+3
2024-03-16src/web.mjs: Add "WEBSOCKET" routeEuAndreh1-7/+8
2024-03-16src/hero.mjs: Move interceptors.contentType() closer to the end of the listEuAndreh1-1/+1
2024-03-16tests/js/hero.mjs: Add upgrade case to handleRequest() testEuAndreh1-2/+35
2024-03-16src/hero.mjs: Add writeHead() and its helper functionsEuAndreh2-0/+93
2024-03-16src/hero.mjs: Remove current makeUpgradeListener() and its helpersEuAndreh2-233/+0
2024-03-16src/hero.mjs: findHandler(): learn how to find upgrade routesEuAndreh2-32/+73
2024-03-16src/hero.mjs: Add interceptors.websocketHandshake()EuAndreh2-2/+95
2024-03-16src/hero.mjs: Remove WEBSOCKET_* constantsEuAndreh1-9/+3
2024-03-16src/hero.mjs: Add validateUpgrade(), computeHash() and their helper functionsEuAndreh2-2/+268