Repository navigation
ci(sonar): excluir la cáscara D-Bus del plugin de red de la cobertura - #51
Merged
Merged
Conversation
El plugin tauri-plugin-network-manager expone activate_saved_wifi, cuyo cuerpo es puro D-Bus (Proxy, ListConnections, ActivateConnection) y sólo se ejercita contra un NetworkManager vivo en el bus del sistema, que el CI no tiene. La lógica pura del match (por UUID o por bytes de SSID) se extrajo y se cubre con pruebas; la cáscara vive en src/activate.rs. Se excluye esa cáscara y el src/lib.rs del plugin —registro de comandos y runtime, como ya se excluye el de las apps— del cálculo de cobertura de código nuevo. Mismo criterio que commands.rs, channel/*, clipboard/* y src-tauri/src/lib.rs ya excluidos.
|
Caution Review failedThe pull request is closed. Walkthrough
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the workflow list, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué cambia
Agrega
**/tauri-plugin-network-manager/src/lib.rsy**/tauri-plugin-network-manager/src/activate.rsasonar.coverage.exclusionsenapp.yml.Por qué
El comando
activate_saved_wifidel plugin de red es cáscara D-Bus (Proxy,ListConnections,ActivateConnection): sólo corre contra un NetworkManager vivo en el bus del sistema, que el CI no tiene. La lógica pura del match (UUID exacto, o bytes crudos del SSID) ya se extrajo a funciones propias y se cubre con pruebas; la cáscara quedó aislada ensrc/activate.rs. Elsrc/lib.rsdel plugin es registro de comandos y runtime, igual quesrc-tauri/src/lib.rsde las apps, que ya está excluido.Es el mismo criterio con el que ya están excluidos
commands.rs,channel/*,clipboard/*,windows_apps/*ysrc-tauri/src/lib.rs: cáscara de runtime/IPC que no se puede cubrir con pruebas unitarias. No baja el umbral (sigue en 80%), sólo saca del denominador líneas intesteables de un plugin.Desbloquea tauri-plugin-network-manager#17 (y, encadenado, vasak-desktop#313).
Cómo se prueba
propio.ymlcorre actionlint y zizmor sobre el workflow; los tests descripts/pasan en local (54, OK).Summary by CodeRabbit