From 938abbb3ce3c376b6cdc680e20ee29b5dc15e95e Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 20 Jul 2026 12:08:07 +0400 Subject: [PATCH] before ansi_error --- test/stub/ansi_error.bash | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/test/stub/ansi_error.bash b/test/stub/ansi_error.bash index 16f6915..8b73b29 100755 --- a/test/stub/ansi_error.bash +++ b/test/stub/ansi_error.bash @@ -8,7 +8,15 @@ stack_sources=('file.bash' './lib/utility.bash' 'file.bash') stack_lines=(18 56 12) stack_functions=('f2' 'f1' '
') -function dump_failure { +function ansi_block_continuation { + tput sc + tput cuu 1 + BG=RED FG=BLACK style_ansi "\t╦" + tput rc + FG=RED style_ansi "\t║\n" +} + +function ansi_block_error { BG=RED FG=BLACK PADDING=2 @@ -21,15 +29,8 @@ function dump_failure { ansi_reset } -function dump_traces { +function ansi_traces { local optional location - # block continuation - tput sc - tput cuu 1 - BG=RED FG=BLACK style_ansi "\t╦" - tput rc - - FG=RED style_ansi "\t║\n" optional=false for i in "${!stack_sources[@]}"; do @@ -43,5 +44,6 @@ function dump_traces { done } -dump_failure -dump_traces +ansi_block_error +ansi_block_continuation +ansi_traces