summaryrefslogtreecommitdiff
path: root/tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* src/hero.mjs: Add emitHeaders()EuAndreh2024-03-151-0/+24
|
* src/hero.mjs: Add comboForLabel()EuAndreh2024-03-151-0/+20
|
* src/hero.mjs: Add isValidLabel()EuAndreh2024-03-151-0/+19
|
* tests/lighttpd.conf: add the upgrade header without replacing existing onesEuAndreh2024-03-141-1/+1
|
* tests/lighttpd.conf: Forward "enable" header to allow connection upgradeEuAndreh2024-03-141-0/+3
|
* src/hero.mjs: Include "headers" and "ref" in request paramEuAndreh2024-03-141-7/+48
|
* src/hero.mjs: Add timing data to "in-response" log entryEuAndreh2024-03-081-2/+5
|
* src/utils.mjs: Add dissoc()EuAndreh2024-03-081-0/+18
|
* src/web.mjs: Move logging and interceptors to the beginning of the fileEuAndreh2024-03-081-491/+491
|
* src/hero.mjs: Make sure globalInceptors are used even when we get a 404EuAndreh2024-03-081-1/+16
|
* src/hero.mjs: Add buildTable()EuAndreh2024-03-081-0/+13
|
* src/hero.mjs: server.listen() -> server.start(); server.close() -> server.stop()EuAndreh2024-03-071-4/+4
|
* src/hero.mjs: Add makeReopeningPipeReader()EuAndreh2024-03-071-25/+89
| | | | | This addresses point nÂș 2 from commit 40118a188fb05219d1188ff775ce71f66c8cb56a.
* src/hero.mjs: makePipeReader() now returns a function for closing itEuAndreh2024-03-071-4/+0
|
* tests/js/hero.mjs: Better names for pipes and sockets created by testsEuAndreh2024-03-071-21/+28
|