]> git.giacomolli.uk - onechat/commit
Move shared helpers to files of their own
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 17:35:21 +0000 (14:35 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Fri, 6 Nov 2026 17:35:21 +0000 (14:35 -0300)
commit0821d23c64f4ffc856760e4914fa39ba2e3260e4
treeb1e49deff440b47a14c0f304d766535bde1bca0f
parent08e0085ca971f59da8b3ecda532ffe6203b6c68c
Move shared helpers to files of their own

writeFileAtomic moves from memory.go to file.go with no change, because
the token file of the login uses it too, and a helper in the file of its
first user hides the dependency of the other. The test clock moves from
log_test.go to clock_test.go for the same reason: the memory, tree, and
replay tests use it only as a clock.

A search of every cross-file use finds no other helper with an unrelated
user. The other shared declarations are parts of the memory core or of
the model client that compose for one purpose.

Issue: b14d537
clock_test.go [new file with mode: 0644]
file.go [new file with mode: 0644]
log_test.go
memory.go