Run artifact

workspace/targets/CsvStat/blueprint/FEATURE-NullValues.md

FEATURE: Null Values

FieldValue
Version20261025 V1
DescriptionRecognise null spellings (empty, NA, N/A, NULL ignoring case) on trimmed values.
Depends OnFEATURE-Trimming.md, FEATURE-CsvReading.md
Providescsvdata.IsNull
Consumescsvdata.Read

Purpose

Statistics, type inference and frequency counting all need one shared definition of "null". This feature provides it as a function in internal/csvdata so no other package re-implements it.

Behavior

trimmed of leading and trailing spaces.

(na, n/a, Null and null are null).

an input (trimming precedes this rule), so only exact spellings match.

Tests the build must write

The project's own suite in internal/csvdata contains these test functions (names are fixed so acceptance can run them):

Programmatic Acceptance

=== AC null-empty ===
Intent: The empty string is reported null by csvdata.IsNull.
Requires: executable=go; scope=test

from drydock_go import run_test

result = run_test("./internal/csvdata", "TestIsNullEmpty") print(result.stdout) print(result.stderr) assert result.passed, (result.status, result.stdout, result.stderr) === END AC null-empty ===

=== AC null-spellings ===
Intent: NA, N/A and NULL are null in any letter case.
Requires: executable=go; scope=test

from drydock_go import run_test

result = run_test("./internal/csvdata", "TestIsNullSpellings") print(result.stdout) print(result.stderr) assert result.passed, (result.status, result.stdout, result.stderr) === END AC null-spellings ===

=== AC null-non-null-values ===
Intent: Ordinary values such as 0, false and near-miss spellings are not null.
Requires: executable=go; scope=test

from drydock_go import run_test

result = run_test("./internal/csvdata", "TestIsNullNonNullValues") print(result.stdout) print(result.stderr) assert result.passed, (result.status, result.stdout, result.stderr) === END AC null-non-null-values ===

=== AC null-quoted-empty ===
Intent: A quoted empty field read from a CSV file is null.
Requires: executable=go; scope=test

from drydock_go import run_test

result = run_test("./internal/csvdata", "TestQuotedEmptyFieldIsNull") print(result.stdout) print(result.stderr) assert result.passed, (result.status, result.stdout, result.stderr) === END AC null-quoted-empty ===

=== AC null-spaces-only ===
Intent: A field of only spaces is null once trimmed.
Requires: executable=go; scope=test

from drydock_go import run_test

result = run_test("./internal/csvdata", "TestSpacesOnlyFieldIsNull") print(result.stdout) print(result.stderr) assert result.passed, (result.status, result.stdout, result.stderr) === END AC null-spaces-only ===

User Acceptance

Guardrails