Skip to content

Commit 7d8cfc3

Browse files
committed
tests 6
Signed-off-by: Julio Jimenez <julio@clickhouse.com>
1 parent c1b32b8 commit 7d8cfc3

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

lib/sanitize.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ sanitize_numeric() {
231231
if [[ ! "$sanitized" =~ ^[0-9]+$ ]]; then
232232
log_error "Invalid numeric value for $field_name: $value"
233233
log_error "Value must be a positive integer"
234-
exit 1
234+
return 1
235235
fi
236236

237237
# Convert to integer (removes leading zeros) for range checking
@@ -243,7 +243,7 @@ sanitize_numeric() {
243243
if (( int_value < int_min )) || (( int_value > int_max )); then
244244
log_error "Numeric value for $field_name out of range: $int_value"
245245
log_error "Value must be between $int_min and $int_max"
246-
exit 1
246+
return 1
247247
fi
248248

249249
# Return the integer value (without leading zeros)

license-mappings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,17 @@
549549
"github.com/json-iterator/go": "MIT",
550550
"github.com/jsummers/gobmp": "MIT",
551551
"github.com/julz/importas": "Apache-2.0",
552+
"github.com/k0kubun/pp/v3": "MIT",
553+
"github.com/karamaru-alpha/copyloopvar": "MIT",
554+
"github.com/kballard/go-shellquote": "MIT",
555+
"github.com/kelseyhightower/envconfig": "MIT",
556+
"github.com/kennygrant/sanitize": "BSD-3-Clause",
557+
"github.com/kevinburke/ssh_config": "MIT",
558+
"github.com/kisielk/errcheck": "MIT",
559+
"github.com/kkHAIKE/contextcheck": "Apache-2.0",
552560
"github.com/klauspost/compress": "BSD-3-Clause",
561+
"github.com/klauspost/cpuid/v2": "MIT",
562+
"github.com/knadh/koanf/maps": "MIT",
553563
"github.com/lufia/plan9stats": "BSD-3-Clause",
554564
"github.com/magiconair/properties": "BSD-2-Clause",
555565
"github.com/MakeNowJust/heredoc": "MIT",

0 commit comments

Comments
 (0)