<feed xmlns='http://www.w3.org/2005/Atom'>
<title>lectio.git/internal/bible/bible_test.go, branch v0.46.1</title>
<subtitle>offline Catholic daily readings and liturgical calendar in Go, with CLI, TUI and web clients</subtitle>
<id>https://git.labunix.xyz/lectio.git/atom?h=v0.46.1</id>
<link rel='self' href='https://git.labunix.xyz/lectio.git/atom?h=v0.46.1'/>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/'/>
<updated>2026-07-29T09:46:17Z</updated>
<entry>
<title>test(bible): skip corpus-dependent tests when optional corpora aren't embedded</title>
<updated>2026-07-29T09:46:17Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-07-29T09:46:17Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=8ddd910dd545c45a7227da87ca125758b4a0e2cb'/>
<id>urn:sha1:8ddd910dd545c45a7227da87ca125758b4a0e2cb</id>
<content type='text'>
Since 51c0f4e split the corpora (only vul embedded by default; wuj/drb/grb
behind -tags fullbible), `go test ./...` on the default build was red across six
packages -- every failure was a test assuming an optional corpus is present.

Guard those assertions with a skip keyed on bible.Meta(code), so they run under
-tags fullbible and skip -- not fail -- on the default vul-only build. Mixed
tests are split into subtests so the always-embedded vul assertions and pure
logic (pl-&gt;vul fallback, explicit passthrough, bt-rejection, i18n labels) keep
running on both builds. Test-only change; no product code or corpora touched.

- internal/bible: TestVerses, TestLookup, TestCorpusBooks, TestChapters,
  TestGrbNoApparatusMarkers, TestCrossChapterRange* (requireCorpus helper).
- internal/cli, config, render, tui, web: the same pattern for their
  corpus-dependent tests.
- Fixes an index-out-of-range panic in internal/tui's reader tests that was
  aborting the package binary and masking 3 further corpus-absence failures
  (TestReaderBookmarkFlow, TestReaderChapterJump, TestReaderRemembersPlace).

Verified: `go test ./...` and `go test -tags fullbible ./...` both green (0 FAIL);
guards active only on the default build (29 skips vs 1 unrelated pre-existing);
gofmt and go vet clean.
</content>
</entry>
<entry>
<title>cli: --rand/--rand-v (random verse) + --rand-ch (random chapter) from the corpus, using the config default version; v0.16.0</title>
<updated>2026-07-24T13:25:50Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-07-24T13:25:50Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=ed7717fef53db3b3aa5593fbb2649313e75a0f31'/>
<id>urn:sha1:ed7717fef53db3b3aa5593fbb2649313e75a0f31</id>
<content type='text'>
</content>
</entry>
<entry>
<title>grb: strip SBLGNT apparatus markers (U+2E00–U+2E0D); render: show scripture ref in traditional headings; v0.12.0</title>
<updated>2026-07-24T12:23:55Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-07-24T12:23:55Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=a87f2fafbda90cc9eeb32ea856356c34e1d880b0'/>
<id>urn:sha1:a87f2fafbda90cc9eeb32ea856356c34e1d880b0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>corpus: fix vul book mislabel 2 King -&gt; 2 Kings (restores Vulgate 2 Kings); v0.11.1</title>
<updated>2026-07-24T11:54:13Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-07-24T11:54:13Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=e54b24308e42addad396a13f9f53a60e5f6468d5'/>
<id>urn:sha1:e54b24308e42addad396a13f9f53a60e5f6468d5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>reader: lectio-ui --reader fuzzy book picker + chapter reader over the corpora; v0.8.0</title>
<updated>2026-07-24T10:26:23Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-07-24T10:26:23Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=ed34fd574b4fc2e0a52c655ececddd1be29b271e'/>
<id>urn:sha1:ed34fd574b4fc2e0a52c655ececddd1be29b271e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bible: embed corpora + chapter lookup</title>
<updated>2026-07-23T10:49:21Z</updated>
<author>
<name>Lukasz Kasprzak</name>
<email>lukas@labunix.xyz</email>
</author>
<published>2026-07-23T10:49:21Z</published>
<link rel='alternate' type='text/html' href='https://git.labunix.xyz/lectio.git/commit/?id=998e0d5bb2aa4412ca05d28f27592ae54727e2ba'/>
<id>urn:sha1:998e0d5bb2aa4412ca05d28f27592ae54727e2ba</id>
<content type='text'>
</content>
</entry>
</feed>
