Extend generator filtering to support element ranges
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
- #3189 de @annacastroops — cerrado sin fusionar
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- cpp
- Área
- cli, testing-qa
Línea de trabajo
Comienza localizando la implementación de filtrado de generadores añadida recientemente y las especificaciones de prueba que ya usan comas como OR. Define la sintaxis de rangos aceptada y el comportamiento de validación a partir de los ejemplos y las preguntas de diseño, y después añade cobertura para combinaciones, orden, duplicados, solapamientos y rangos malformados o negativos; se considera terminado cuando los filtros válidos seleccionan los elementos de generador previstos y los filtros no válidos son rechazados.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Note that all the ideas here are fully backwards compatible, so the
extension can be implemented without a breaking change
The recently-added generator filtering only allows filtering to a singular
element. This can be extended to support multiple elements and/or element
ranges.
For multiple separate elements, we can reuse the concept of commas as "OR"
from the test specs. This would then mean that -g 1,3,4 filters the
generator to indices 1, 3, and 4. For element ranges, we can use
the start-end format, so that -g 1-4 would filter the generator to
indices 1, 2, 3, and 4.
These two should also be combinable, so that -g 1,3,6-10 filters the
generator to indices 1, 3, 6, 7, ..., 10.
Examples
Accepted
-g 1,2- Elements at indices 1 and 2.-g 1-3- Elements at indices 1, 2, and 3.-g 1-1- Single element range, only the element at index 1.-g 1-3,4,5-10- Elements at indices 1,...,10.
Rejected
-g 1-3,2-4- The two element ranges are overlapping-g 3,2,1- Elements are in bad order, must be monotonically increasing-g 3-1- Range is decreasing, see above-g 1,2,2,3- 3rd element is duplicated-g -2- Negative number, should still be rejected-g 1--2- Syntactically invalid-g 1-2-3- Syntactically invalid
Design questions
-
Should the ranges be closed? Programming usually uses half-open ranges,
but closed-ranges feel more intuitive for specifying the range on the
command line. -
Should we error out on bad-but-fixable filters? Erroring out is less
confusing, but fixing can be more user friendly.- Duplicated indices can be deduplicated.
- Unsorted indices can be sorted
- Overlapping ranges could be merged
-
Should we support partially-specified ranges?
3-*could mean "From 4th element to the end of the generator"
- Lenguaje dominante
- C++
- Estrellas
- 21.6k
- Forks
- 3.4k
- Merge medio
- 3 d 12 h
- PR fusionados (30 d)
- 5
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 catchorg/Catch2
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 2 días
-
catch_discover_tests passes all EXTRA_ARGS as one argumentPosiblemente ocupada @CyberKun la tomó hace 11 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
catchorg/Catch2#3239 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Not seeing some error messages from fakeit in jetbrains riderPosiblemente ocupada @Amanpal9 la tomó hace 21 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
catchorg/Catch2#3228 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
catch_discover_tests fails for Emscripten/WASM tests since v3.16.0Posiblemente ocupada @nafiurahman00 la tomó hace 8 días. AbiertoExtras
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
catchorg/Catch2#3241 · 1 comentario ·
Los mantenedores suelen responder en 2 días
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 2 días
Todos los issues de catchorg/Catch2
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
cp-algorithms/cp-algorithms#1774 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
telefonicaid/fiware-orion#4836 ·
Los mantenedores suelen responder en 1 día
-
nixd exits at startup when its parent process belongs to another userPosiblemente ocupada @conao3 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nix-community/nixd#930 ·
Los mantenedores suelen responder en 2 días
-
refactor topic-ui topic-weather
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Command-Install Needs-Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
microsoft/winget-cli#6718 ·
Los mantenedores suelen responder en 2 días