=================================================================== I. File Size Probe Tests ===================================================================
(t *testing.T)
| 1076 | // =================================================================== |
| 1077 | |
| 1078 | func TestFileSizeProbeCommand(t *testing.T) { |
| 1079 | cmd := FileSizeProbeCommand("/tmp/test.bin") |
| 1080 | if !strings.Contains(cmd, "stat") && !strings.Contains(cmd, "wc") { |
| 1081 | t.Errorf("probe command should use stat or wc: %s", cmd) |
| 1082 | } |
| 1083 | if !strings.Contains(cmd, "/tmp/test.bin") { |
| 1084 | t.Errorf("probe command should reference file path: %s", cmd) |
| 1085 | } |
| 1086 | } |
| 1087 | |
| 1088 | func TestParseFileSizeOutput_Plain(t *testing.T) { |
| 1089 | size, err := ParseFileSizeOutput("12345\n") |
nothing calls this directly
no test coverage detected