From 4003b6359747f6e43357e4bf190d4e71a66ec796 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Thu, 26 Dec 2024 04:15:28 +0700 Subject: lib/binary: implement append-only binary file The binary is new package that complement the standard binary package Currently it implement append-only binary that encode the data using [binary.Writer]. We call them "Apo" for short. --- lib/binary/binary_test.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/binary/binary_test.go (limited to 'lib/binary/binary_test.go') diff --git a/lib/binary/binary_test.go b/lib/binary/binary_test.go new file mode 100644 index 00000000..ca394101 --- /dev/null +++ b/lib/binary/binary_test.go @@ -0,0 +1,19 @@ +// SPDX-FileCopyrightText: 2024 M. Shulhan +// +// SPDX-License-Identifier: BSD-3-Clause + +package binary + +import ( + "os" + "testing" + "time" +) + +func TestMain(m *testing.M) { + var now = time.Date(2024, 12, 26, 2, 21, 0, 0, time.UTC) + timeNow = func() time.Time { + return now + } + os.Exit(m.Run()) +} -- cgit v1.3-5-g9baa