summaryrefslogtreecommitdiff
path: root/internal/streamrow/row_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-20 07:41:04 +0300
committerPaul Buetow <paul@buetow.org>2026-05-20 07:41:04 +0300
commit5fd613562e2aa2ab3aac3349f44db88330046c1c (patch)
treedfb391de44b309d391031b7744bc48f3ea7c8d7d /internal/streamrow/row_test.go
parentdf1225efe494cc81513cf98e93891376e45f9615 (diff)
task 07: assert mmap address-space accounting end-to-end
Diffstat (limited to 'internal/streamrow/row_test.go')
-rw-r--r--internal/streamrow/row_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/streamrow/row_test.go b/internal/streamrow/row_test.go
index b239969..7573f43 100644
--- a/internal/streamrow/row_test.go
+++ b/internal/streamrow/row_test.go
@@ -61,6 +61,7 @@ func TestNewPopulatesFieldsFromPair(t *testing.T) {
pair.Duration = 66
pair.DurationToPrev = 19
pair.Bytes = 512
+ pair.AddressSpaceBytes = 2048
got := New(9, pair)
if got.Seq != 9 || got.TimeNs != 1234 {
@@ -78,6 +79,9 @@ func TestNewPopulatesFieldsFromPair(t *testing.T) {
if got.DurationNs != 66 || got.GapNs != 19 || got.Bytes != 512 {
t.Fatalf("DurationNs/GapNs/Bytes = %d/%d/%d, want 66/19/512", got.DurationNs, got.GapNs, got.Bytes)
}
+ if got.AddressSpaceBytes != 2048 {
+ t.Fatalf("AddressSpaceBytes = %d, want 2048", got.AddressSpaceBytes)
+ }
if got.RetVal != -2 || !got.IsError {
t.Fatalf("RetVal/IsError = %d/%v, want -2/true", got.RetVal, got.IsError)
}