[PROPOSAL] Test every command-line option, including what the C code receives
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start by reading the existing argument tests from #2041 and the Rust parser in args.rs; trace how ccxr_parse_parameters passes settings into the C ccx_options structure. The proposal is split into small PRs: add a helper for checking C values, detect options without tests, then cover untested options and legacy spellings. Done means these paths and options have regression tests; coordinate with the author, who says they plan to work on it.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
The Sample Platform NG page says: "We are not testing every possible argument... We broke some things on the rust migration that apparently flew under the radar."
Since the Rust argument parser replaced the C one, a number of options have broken without any test noticing:
- old spellings rejected (#2367), negative
--delay(#2370),ccextractor.cnfignored (#2369) --sentencecap/--kfmissing most words (#2397)- bad time values crashing (#2374, #2386),
--sendto/--buffersize(#2393) - still on master:
--defaultcolor,-smi,--streamtype 0x24, combined debug flags (fixes ready)
Why the current tests (#2041) didn't catch these:
- About 38 of 171 options have no test at all, e.g.
--defaultcolor,--smi,--stream,--stdin,--udp,--tcp. - No test checks what the C code receives. The tests check the Rust
Optionsafter parsing, but bugs like--defaultcolor(wrong C type) and--sentencecap(list not sorted for C'sbsearch) happen when the settings are handed to C. - Most tests skip the real entry path (
ccxr_parse_parameters, including the legacy-spelling conversion), which is how--delay -500went unnoticed.
I'd like to add, in small PRs:
- A test helper that runs options through the real path (
ccxr_parse_parameters→ Cccx_options) and checks the C values. - A test that fails when an option in
args.rshas no test, so new options can't be added untested. - Tests for the untested options, plus the old v0.94 spellings.
Does this direction sound good? i will work on this
- Lenguaje dominante
- C
- Estrellas
- 908
- Forks
- 595
- Merge medio
- 3 d 23 h
- PR fusionados (30 d)
- 32
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CCExtractor/ccextractor
-
[BUG] Filename sequence expansion (`+`) panics on numeric values exceeding `i32::MAX`Posiblemente ocupada @muntasir-396 la tomó hace 2 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
CCExtractor/ccextractor#2402 ·
Los mantenedores suelen responder en 1 día
-
[BUG] --out=report: heap-use-after-free in process608(), and a crash with more than one input filePosiblemente ocupada @Deepak-negi11 la tomó hace 1 día. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
CCExtractor/ccextractor#2412 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
CCExtractor/ccextractor#2398 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
CCExtractor/ccextractor#2379 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
--tpages-all extracts less than --tpagePosiblemente ocupada @SajalDevX la tomó hace 27 días. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
CCExtractor/ccextractor#2355 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de CCExtractor/ccextractor
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
valkey-io/valkey#4979 · 1 reacción ·
Los mantenedores suelen responder en 2 días
-
Document the Config FileAbiertodocumentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
cherries-works/pulse#76 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
colbymchenry/codegraph#2770 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
FriendsofECCE/ECCE#425 ·