Skip to content

Refactoring to remove duplicated code #288

Refactoring to remove duplicated code

Refactoring to remove duplicated code #288

GitHub Actions / JUnit bash-tools-alpine-4.4 failed Sep 8, 2024 in 0s

183 tests run, 180 passed, 0 skipped, 3 failed.

Annotations

Check failure on line 1 in vendor/bash-tools-framework/.vscode/bats.code-snippets

See this annotation in the file changed.

@github-actions github-actions / JUnit bash-tools-alpine-4.4

bats.Database::dbImportProfile::display_help

(from function `testCommand' in file src/batsHeaders.sh, line 49,
 in test file src/_binaries/Database/dbImportProfile/dbImportProfile.bats, line 36)
Raw output
(from function `testCommand' in file src/batsHeaders.sh, line 49,
 in test file src/_binaries/Database/dbImportProfile/dbImportProfile.bats, line 36)
  `testCommand "${binDir}/dbImportProfile" dbImportProfile.help.txt' failed
--- /dev/fd/63
+++ /bash/src/_binaries/Database/dbImportProfile/testsData/dbImportProfile.help.txt
@@ -15,10 +15,10 @@

 PROFILE OPTIONS:
   --ratio, -r <ratio> {single}
-    define the ratio to use (0 to 100% - default 70).
-    - 0 means profile will filter out all the tables
-    - 100 means profile will keep all the tables.
-    Eg: 70 means that tables with size(table+index)
+    define the ratio to use (0 to 100% - default 70).
+    - 0 means profile will filter out all the tables
+    - 100 means profile will keep all the tables.
+    Eg: 70 means that tables with size(table+index)
     that are greater than 70% of the max table size will be excluded.
     Default value: 70
   --profile, -p <profile> {single}

Check failure on line 1 in vendor/bash-tools-framework/.vscode/bats.code-snippets

See this annotation in the file changed.

@github-actions github-actions / JUnit bash-tools-alpine-4.4

bats.Database::dbQueryAllDatabases::display_help

(from function `testCommand' in file src/batsHeaders.sh, line 49,
 in test file src/_binaries/Database/dbQueryAllDatabases/dbQueryAllDatabases.bats, line 42)
Raw output
(from function `testCommand' in file src/batsHeaders.sh, line 49,
 in test file src/_binaries/Database/dbQueryAllDatabases/dbQueryAllDatabases.bats, line 42)
  `testCommand "${binDir}/dbQueryAllDatabases" dbQueryAllDatabases.help.txt' failed
--- /dev/fd/63
+++ /bash/src/_binaries/Database/dbQueryAllDatabases/testsData/dbQueryAllDatabases.help.txt
@@ -12,9 +12,9 @@

 ARGUMENTS:
   argQuery {single} (mandatory)
-    Query to execute 
-      - <file>, try to execute the mysql query provided by the file 
-      - <queryFile>, search for query file in queries directory (see below) 
+    Query to execute
+      - <file>, try to execute the mysql query provided by the file
+      - <queryFile>, search for query file in queries directory (see below)
       - else the argument is interpreted as query string
 JOB OPTIONS:
   --jobs, -j <jobsCount> {single}

Check failure on line 1 in vendor/bash-tools-framework/.vscode/bats.code-snippets

See this annotation in the file changed.

@github-actions github-actions / JUnit bash-tools-alpine-4.4

bats.PostmanCli::config

(from function `fail' in file vendor/bash-tools-framework/vendor/bats-support/src/error.bash, line 40,
 from function `assert_line' in file vendor/bash-tools-framework/vendor/bats-assert/src/assert_line.bash, line 202,
Raw output
(from function `fail' in file vendor/bash-tools-framework/vendor/bats-support/src/error.bash, line 40,
 from function `assert_line' in file vendor/bash-tools-framework/vendor/bats-assert/src/assert_line.bash, line 202,
 in test file src/_binaries/Postman/postmanCli/postmanCli.bats, line 35)
  `assert_line --index 9 'BASH_FRAMEWORK_THEME                     = "default"'' failed

-- line differs --
index    : 9
expected : BASH_FRAMEWORK_THEME                     = "default"
actual   : BASH_FRAMEWORK_THEME                     = "noColor"
--