Skip to content

Commit 04bed70

Browse files
committed
test: broaden proc-parser property coverage (non-vacuous zero-tail, digit names)
1 parent 73ec20f commit 04bed70

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/sys/linux/proc/counter_parser_properties_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule Sys.Linux.Proc.CounterParserPropertiesTest do
1515
# An interface/device name: lowercase letters/digits, optionally with a `:alias`.
1616
defp ifname do
1717
gen all(
18-
base <- string(?a..?z, min_length: 1, max_length: 6),
18+
base <- string([?a..?z, ?0..?9], min_length: 1, max_length: 6),
1919
alias_suffix <- one_of([constant(""), map(integer(0..9), &":#{&1}")])
2020
) do
2121
base <> alias_suffix

test/sys/linux/proc/stat_properties_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ defmodule Sys.Linux.Proc.StatPropertiesTest do
4444
end
4545

4646
property "missing trailing columns default to zero (older-kernel compatibility)" do
47-
check all(n <- integer(3..10), cols <- list_of(counter(), length: n)) do
47+
check all(n <- integer(3..9), cols <- list_of(counter(), length: n)) do
4848
t = CpuTimes.from_columns(cols)
4949

5050
present = [

0 commit comments

Comments
 (0)