MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / TestParseFileSizeOutput_Plain

Function TestParseFileSizeOutput_Plain

internal/sessions/transfer_test.go:1088–1096  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1086}
1087
1088func TestParseFileSizeOutput_Plain(t *testing.T) {
1089 size, err := ParseFileSizeOutput("12345\n")
1090 if err != nil {
1091 t.Fatalf("parse error: %v", err)
1092 }
1093 if size != 12345 {
1094 t.Errorf("expected 12345, got %d", size)
1095 }
1096}
1097
1098func TestParseFileSizeOutput_WithMetadata(t *testing.T) {
1099 output := "Exit code: 0\nWall time: 0 seconds\nOutput:\n98765\n"

Callers

nothing calls this directly

Calls 1

ParseFileSizeOutputFunction · 0.85

Tested by

no test coverage detected