diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-15 22:09:06 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-15 22:09:06 +0200 |
| commit | bbc9b103acac96b83b150b81f2effe1b65c3f8a2 (patch) | |
| tree | b6635949ae0df8f43bf83d58df9bda57e605953e /internal/engine | |
| parent | 5d77c5b247b6da7a1d49c23b03d5522e398c7d73 (diff) | |
| download | krino-bbc9b103acac96b83b150b81f2effe1b65c3f8a2.tar.gz krino-bbc9b103acac96b83b150b81f2effe1b65c3f8a2.zip | |
docs: GUI design draft; code comments no longer name the owner
Diffstat (limited to 'internal/engine')
| -rw-r--r-- | internal/engine/exclude_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/engine/exclude_test.go b/internal/engine/exclude_test.go index 3398b07..6381a04 100644 --- a/internal/engine/exclude_test.go +++ b/internal/engine/exclude_test.go @@ -212,8 +212,7 @@ func TestExplainReportsExclusionAndSize(t *testing.T) { // TestExcludeFailsClosedOnUnreadableContent: an exclude meant to protect // files holds when its content test cannot read a file (over max-read), so -// no rule acts on a file krino could not check (review M11, Łukasz's -// decision). +// no rule acts on a file krino could not check (review M11). func TestExcludeFailsClosedOnUnreadableContent(t *testing.T) { big := "confidential " + strings.Repeat("x", 2048) h, dl := excludeTree(t, map[string]string{"big.txt": big, "small.txt": "nothing to hide"}) @@ -273,7 +272,7 @@ func TestLoadChecksMainExcludesWithoutDirectories(t *testing.T) { // TestNoTextFormatIsNoMatch: a file whose format has no text cannot contain // a keyword, so a content exclude without a type does not set it aside, and // no "content unreadable" warning is raised - while a real read failure (over -// max-read) still fails closed (re-review N2, Łukasz's decision). +// max-read) still fails closed (re-review N2). func TestNoTextFormatIsNoMatch(t *testing.T) { big := "confidential " + strings.Repeat("x", 2048) h, dl := excludeTree(t, map[string]string{"photo.jpg": "\xff\xd8\xff\x00\x01binary", "big.txt": big}) @@ -315,8 +314,8 @@ func TestNoTextFormatIsNoMatch(t *testing.T) { // TestTextTurningBinaryIsNoText: a file with no known extension whose first // 8 KiB read as text but which holds a NUL further on - a self-extracting // installer - counts as having no text, like an image: a content exclude -// does not set it aside and there is no warning (Łukasz, after the plan 10 -// re-check: "ignore such ones"). +// does not set it aside and there is no warning (decided after the plan 10 +// re-check). func TestTextTurningBinaryIsNoText(t *testing.T) { mixed := "confidential " + strings.Repeat("x", 9000) + "\x00tail" h, _ := excludeTree(t, map[string]string{"mixed": mixed}) |
