<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pakakeh.go/lib/test/writer.go, branch main</title>
<subtitle>Collections of packages and tools for working with Go programming language.</subtitle>
<id>http://git.kilabit.info/pakakeh.go/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/pakakeh.go/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/'/>
<updated>2026-04-12T15:33:31Z</updated>
<entry>
<title>lib/test: rewrite Assert to use [diff.Unified]</title>
<updated>2026-04-12T15:33:31Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-04-12T14:20:40Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=c1a33bead8068e02c34fafb09c5519d5e5c18706'/>
<id>urn:sha1:c1a33bead8068e02c34fafb09c5519d5e5c18706</id>
<content type='text'>
Using diff Unified improve the test output readability when two large
strings are not match.
</content>
</entry>
<entry>
<title>all: convert license and copyright to use SPDX identifiers</title>
<updated>2026-01-15T10:26:33Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2026-01-15T10:14:54Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=7db8c302e1396eda40cd6a1e57f58ed791448556'/>
<id>urn:sha1:7db8c302e1396eda40cd6a1e57f58ed791448556</id>
<content type='text'>
With help of spdxconv tool [1], we able to bulk update all files license
and copyright format to comply with SPDX formats.

[1] https://kilabit.info/project/spdxconv/
</content>
</entry>
<entry>
<title>lib/test: call Helper method inside Assert</title>
<updated>2025-01-22T13:04:15Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2025-01-21T14:39:42Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=b9cff7d8f66d679218d1eaf4b015febbc48abc9e'/>
<id>urn:sha1:b9cff7d8f66d679218d1eaf4b015febbc48abc9e</id>
<content type='text'>
The Helper method mark the Assert function as test helper, which when
printing file and line information, the stack trace from Assert function
will be skipped.
This remove manual lines skipping that previously we have.

</content>
</entry>
<entry>
<title>lib/test: refactoring, rename TestWriter to BufferWriter</title>
<updated>2023-09-10T19:16:52Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2023-09-10T13:00:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=f80218a8023ad2c171901bd422d2a8f6bd155a48'/>
<id>urn:sha1:f80218a8023ad2c171901bd422d2a8f6bd155a48</id>
<content type='text'>
The name TestWriter is considered stutter if its called from external
package, test.TestWriter.

While at it, implement the Error and Errorf in BufferWriter and add
comment to each exported methods.
</content>
</entry>
<entry>
<title>lib/test: change the Assert parameter to Writer</title>
<updated>2022-09-13T11:15:26Z</updated>
<author>
<name>Shulhan</name>
<email>ms@kilabit.info</email>
</author>
<published>2022-09-07T18:18:07Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/pakakeh.go/commit/?id=fce12484ff19e316d4a58a0f24dc312c5b99c810'/>
<id>urn:sha1:fce12484ff19e316d4a58a0f24dc312c5b99c810</id>
<content type='text'>
Since we only need to call Log and Fatalf during Assert, no need to pass
the whole instance of testing.T to Assert.
By changing it to Writer, we also can test the Assert.

This remove the AssertBench, because it have the same function
parameters and body as Assert.
</content>
</entry>
</feed>
