Mutation Testing Results :: Dead Code + Missing Tests
I maintainer di solito rispondono entro 1 giorno
@81reap ci sta già lavorando.
Dal 24/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
results of running mutation testing on the rust codebase. I ran it over the entire codebase on my Ryzen 7 5800X3D ~3h (09:56 → 13:07). I left it running through the day as I was at work and these are the results.
files
programmatic breakdowns
issues by file
[reap@jager:~/Desktop/SQLPage]$ awk -F: 'FNR==NR{m[$1]++;next}{c[$1]++}
END{for(f in m) printf "%d\t%d\t%d\t%.0f%%\t%s\n", m[f], c[f], m[f]+c[f], 100*m[f]/(m[f]+c[f]), f}' \
mutants.out/{missed,caught}.txt | sort -k1,1rn -k3,3rn
| File | Missed | Caught | Viable | Survival |
|---|---|---|---|---|
telemetry.rs |
52 | 13 | 65 | 80% |
template_helpers.rs |
49 | 26 | 75 | 65% |
render.rs |
29 | 48 | 77 | 38% |
webserver/database/sql/rewrite.rs |
21 | 92 | 113 | 19% |
webserver/database/sql_to_json.rs |
21 | 23 | 44 | 48% |
app_config.rs |
18 | 73 | 91 | 20% |
webserver/oidc.rs |
18 | 54 | 72 | 25% |
filesystem.rs |
18 | 31 | 49 | 37% |
webserver/http.rs |
18 | 26 | 44 | 41% |
webserver/lambda_http.rs |
15 | 3 | 18 | 83% |
webserver/database/mod.rs |
12 | 7 | 19 | 63% |
webserver/database/execute_queries.rs |
10 | 34 | 44 | 23% |
webserver/database/csv_import.rs |
9 | 25 | 34 | 26% |
webserver/database/connect.rs |
9 | 4 | 13 | 69% |
webserver/database/sqlpage_functions/function_traits.rs |
7 | 45 | 52 | 13% |
webserver/database/error_highlighting.rs |
7 | 22 | 29 | 24% |
cli/commands.rs |
6 | 0 | 6 | 100% |
webserver/http_client.rs |
5 | 4 | 9 | 56% |
webserver/database/migrations.rs |
5 | 2 | 7 | 71% |
webserver/server_timing.rs |
4 | 12 | 16 | 25% |
templates.rs |
4 | 7 | 11 | 36% |
webserver/content_security_policy.rs |
4 | 3 | 7 | 57% |
webserver/http_request_info.rs |
3 | 40 | 43 | 7% |
webserver/error.rs |
3 | 16 | 19 | 16% |
file_cache.rs |
3 | 13 | 16 | 19% |
webserver/response_writer.rs |
3 | 4 | 7 | 43% |
webserver/database/sqlpage_functions/functions.rs |
3 | 0 | 3 | 100% |
webserver/database/blob_to_data_url.rs |
2 | 28 | 30 | 7% |
webserver/database/sql.rs |
2 | 16 | 18 | 11% |
webserver/database/sqlpage_functions/http_fetch_request.rs |
2 | 2 | 4 | 50% |
webserver/error_with_status.rs |
2 | 1 | 3 | 67% |
webserver/database/sqlpage_expr.rs |
1 | 16 | 17 | 6% |
webserver/database/sqlpage_functions/url_parameters.rs |
1 | 14 | 15 | 7% |
main.rs |
1 | 5 | 6 | 17% |
webserver/database/sql/statement.rs |
1 | 1 | 2 | 50% |
webserver/http_metrics.rs |
1 | 0 | 1 | 100% |
Files with zero iissues: single_or_vec.rs, dynamic_component.rs, webserver/routing.rs, webserver/request_variables.rs, lib.rs, utils.rs.
issue by group
[reap@jager:~/Desktop/SQLPage]$ jq -r --rawfile missed mutants.out/missed.txt \
--argjson dead '["src/template_helpers.rs:525:9","src/template_helpers.rs:526:13",
"src/webserver/database/mod.rs:76:9","src/webserver/error_with_status.rs:22:9",
"src/webserver/error_with_status.rs:27:24",
"src/webserver/database/sqlpage_functions/url_parameters.rs:132:9"]' \
--argjson harness '["src/telemetry.rs","src/webserver/lambda_http.rs","src/cli/commands.rs","src/main.rs"]' \
--arg dialect 'Mssql|MySql|Postgres|postgres|mssql|mysql|oracle|duckdb|Snowflake|sql server|sql_nonnull_to_json|decode_pg_range|decimal_to_json' '
($missed|split("\n")|map(select(length>0))|INDEX(.)) as $M |
map(select($M[.name])) | map(. as $m | {cat:
if $dead | index($m.name|split(": ")[0]) then "dead-code"
elif $harness | index($m.file) then "harness-gap"
elif $m.name | test($dialect) then "dialect"
else "logic" end})
| group_by(.cat)[] | "\(.[0].cat)\t\(length)"' mutants.out/mutants.json
dead-code 7
dialect 33
harness-gap 74
logic 255
- Lingua principale
- Rust
- Stelle
- 2.6k
- Fork
- 175
- Merge medio
- 14h 16m
- PR unite (30g)
- 43
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di sqlpage/SQLPage
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
sqlpage/SQLPage#1218 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
There is no convenient way to reproduce issuesForse già presa @81reap l’ha presa 26 giorni fa. Apertaenhancement
sqlpage/SQLPage#1566 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Confusing sort interfaceForse già presa @lovasoa l’ha presa 73 giorni fa. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
sqlpage/SQLPage#1442 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
chart: 3D chartsApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di sqlpage/SQLPage
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
symposium-dev/symposium#530 ·
I maintainer di solito rispondono entro 5 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
topgrade-rs/topgrade#2540 ·
I maintainer di solito rispondono entro 1 giorno
-
Invalid JSON options for ngram and edge_ngram silently use defaultsForse già presa @Tilendlesa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
noemaforge/vimanam#153 ·
I maintainer di solito rispondono entro 1 giorno