miniwdl
miniwdl copied to clipboard
exapt squote() to provide secure shell-quoting
#493
Applies to version development
only. The squote()
function, in addition to prepending and appending single-quote marks, uses Python's shlex.quote()
to furthermore escape any single-quote marks that may be embedded in the value. It accepts individual string values as well as arrays, with corresponding polymorphic return type.
Pull Request Test Coverage Report for Build 734220915
- 20 of 21 (95.24%) changed or added relevant lines in 1 file are covered.
- No unchanged relevant lines lost coverage.
- Overall coverage increased (+0.01%) to 96.251%
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % |
---|---|---|---|
WDL/StdLib.py | 20 | 21 | 95.24% |
<!-- | Total: | 20 | 21 |
Totals | |
---|---|
Change from base Build 734141035: | 0.01% |
Covered Lines: | 6649 |
Relevant Lines: | 6908 |