Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bashprof output on running a sourced function directly in bats
brikis98-pro:docker-osx-dev brikis98$ ../bashprof/bin/bashprof bats test/docker-osx-dev.bats
✓ configure_paths_to_sync with non-existent docker-compose file results in syncing the current directory
1 test, 0 failures
Statement breakdown
===================
Total µs Total % Count Statement
814081 51.5% 3 IFS= read -r line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:138
121937 7.7% 305 [[ "$line" =~ $pattern ]]
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:38
118017 7.5% 306 IFS= read -r line
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:36
110593 7.0% 304 printf "%s\n" "$line"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:46
107235 6.8% 305 let index+=1
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:37
31226 2.0% 5 head -1
/usr/local/bin/bats:30
7982 0.5% 1 trap "bats_debug_trap \"\$BASH_SOURCE\"" debug
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:290
7973 0.5% 1 "$formatter"
/usr/local/bin/bats:142
7354 0.5% 2 BOOT2DOCKER_SSH_KEY=""
src/docker-osx-dev:57
6768 0.4% 1 echo
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:314
6076 0.4% 2 uname
src/docker-osx-dev:509
4865 0.3% 1 tr -d '\r' < "$BATS_TEST_FILENAME"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:314
4853 0.3% 5 $(type -p greadlink readlink | head -1) "$1"
/usr/local/bin/bats:30
4829 0.3% 5 path="$(resolve_link "$name" || true)"
/usr/local/bin/bats:40
3994 0.3% 1 basename "$1"
/usr/local/bin/bats:51
3986 0.3% 2 dirname "$BATS_TEST_FILENAME"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:29
3443 0.2% 5 type -p greadlink readlink
/usr/local/bin/bats:30
3372 0.2% 8 [ -n "$path" ]
/usr/local/bin/bats:37
3048 0.2% 2 source "${filename}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:47
2917 0.2% 2 BATS_TEST_NAMES=()
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:30
2809 0.2% 3 local cwd="$(pwd)"
/usr/local/bin/bats:34
2753 0.2% 4 printf "\x1B[%dG" $(( $column + 1 ))
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:93
2705 0.2% 1 dirname "$1"
/usr/local/bin/bats:48
2481 0.2% 1 tput cols
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:24
2472 0.2% 3 cd "$cwd"
/usr/local/bin/bats:44
2407 0.2% 3 true
/usr/local/bin/bats:40
2367 0.1% 5 cd "${path%/*}"
/usr/local/bin/bats:38
2270 0.1% 4 local column="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:92
2221 0.1% 5 resolve_link "$name"
/usr/local/bin/bats:29
2218 0.1% 2 local readonly os=$(uname)
src/docker-osx-dev:509
2122 0.1% 5 resolve_link "$name"
/usr/local/bin/bats:40
2074 0.1% 3 pwd
/usr/local/bin/bats:34
2059 0.1% 2 _buffer="${_buffer}$("$@")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:123
2034 0.1% 5 local name="${path##*/}"
/usr/local/bin/bats:39
1929 0.1% 2 BATS_TEST_DIRNAME="$(dirname "$BATS_TEST_FILENAME")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:29
1797 0.1% 4 [[ $# > 0 ]]
src/docker-osx-dev:963
1476 0.1% 1 skip_expr="ok $index # skip (\(([^)]*)\))?"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:147
1386 0.1% 3 "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:123
1336 0.1% 2 [ "$1" -eq 1 ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:117
1306 0.1% 2 type brew > /dev/null 2>&1
src/docker-osx-dev:516
1265 0.1% 3 pwd
/usr/local/bin/bats:43
1157 0.1% 1 [ "$(type -t "$BATS_TEST_NAME" || true)" = "function" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:281
1149 0.1% 1 local string="$(printf "$@")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:82
1130 0.1% 1 BATS_LIBEXEC="$(abs_dirname "$0")"
/usr/local/bin/bats:55
1104 0.1% 1 printf "\x1B[0m"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:113
1102 0.1% 3 local path="$1"
/usr/local/bin/bats:35
1097 0.1% 2 BATS_TEST_NAMES["${#BATS_TEST_NAMES[@]}"]="$test_name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:90
1084 0.1% 1 screen_width="$(tput cols)"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:24
1083 0.1% 1 printf "\n"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:133
1069 0.1% 2 return 0
src/docker-osx-dev:917
1064 0.1% 2 readonly COLOR_END='\033[0m'
src/docker-osx-dev:14
1058 0.1% 2 handle_command "$@"
src/docker-osx-dev:1036
1050 0.1% 1 export BATS_PREFIX="$(abs_dirname "$BATS_LIBEXEC")"
/usr/local/bin/bats:56
1044 0.1% 1 name="$(eval echo "$quoted_name")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:41
1044 0.1% 2 printf "%s" "$_buffer"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:127
1019 0.1% 1 printf "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:82
1017 0.1% 1 echo "$dirname/$(basename "$1")"
/usr/local/bin/bats:51
1015 0.1% 2 case "$line" in
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:139
1014 0.1% 2 go_to_column 0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:91
1008 0.1% 2 local test_name="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:89
1003 0.1% 1 filenames["${#filenames[@]}"]="$(expand_path "$filename")"
/usr/local/bin/bats:123
1001 0.1% 2 [ -f "$filename" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:42
998 0.1% 2 [[ ! "$os" = "Darwin" ]]
src/docker-osx-dev:511
997 0.1% 2 readonly LOG_LEVELS="$LOG_LEVEL_DEBUG $LOG_LEVEL_INFO $LOG_LEVEL_WARN $LOG_LEVEL_ERROR $LOG_LEVEL_INSTRUCTIONS"
src/docker-osx-dev:22
995 0.1% 1 printf "\n%d test%s" "$count" "$(plural "$count")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:68
986 0.1% 2 exit "$status"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:276
981 0.1% 1 export BATS_CWD="$(abs_dirname .)"
/usr/local/bin/bats:57
977 0.1% 2 case $key in
src/docker-osx-dev:966
975 0.1% 2 printf "\x1B[K"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:97
970 0.1% 2 readonly BASH_RC="$HOME/.bashrc"
src/docker-osx-dev:27
967 0.1% 2 key="$1"
src/docker-osx-dev:964
967 0.1% 2 bats_test_function test_configure-2d5fpaths-2d5fto-2d5fsync_with_non-2dexistent_docker-2dcompose_file_results_in_syncing_the_current_directory
/tmp/bats.3421.src:306
965 0.1% 2 local docker_compose_file="$DEFAULT_COMPOSE_FILE"
src/docker-osx-dev:958
963 0.1% 1 printf ", %d failure%s" "$failures" "$(plural "$failures")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:70
961 0.1% 2 shift
src/docker-osx-dev:1012
959 0.1% 1 export PATH="$BATS_LIBEXEC:$PATH"
/usr/local/bin/bats:58
953 0.1% 1 echo "bats_test_function ${test_name}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:51
951 0.1% 1 cd "$(dirname "$1")" 2> /dev/null
/usr/local/bin/bats:48
946 0.1% 2 readonly COLOR_INFO='\033[0;32m'
src/docker-osx-dev:10
943 0.1% 2 [ -z "$TMPDIR" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:302
940 0.1% 2 readonly DEFAULT_LOG_LEVEL="$LOG_LEVEL_INFO"
src/docker-osx-dev:23
930 0.1% 2 cmd="$TEST_COMMAND"
src/docker-osx-dev:974
927 0.1% 2 readonly BASH_PROFILE="$HOME/.bash_profile"
src/docker-osx-dev:26
926 0.1% 2 readonly COLOR_INSTRUCTIONS='\033[0;37m'
src/docker-osx-dev:13
922 0.1% 2 readonly LOG_LEVEL_DEBUG="DEBUG"
src/docker-osx-dev:17
920 0.1% 2 readonly LOG_LEVEL_INFO="INFO"
src/docker-osx-dev:18
918 0.1% 2 source src/docker-osx-dev "test_mode"
/tmp/bats.3421.src:6
916 0.1% 2 BATS_TMPNAME="$BATS_TMPDIR/bats.$$"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:308
916 0.1% 2 local paths_to_sync=()
src/docker-osx-dev:960
915 0.1% 2 BATS_OUT="${BATS_TMPNAME}.out"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:310
914 0.1% 2 local cmd="$DEFAULT_COMMAND"
src/docker-osx-dev:956
914 0.1% 2 readonly RSYNC_FLAGS="--archive --log-format 'Syncing %n: %i' --delete --omit-dir-times --inplace --whole-file"
src/docker-osx-dev:50
913 0.1% 2 readonly LOG_LEVEL_INSTRUCTIONS="INSTRUCTIONS"
src/docker-osx-dev:21
911 0.1% 2 check_prerequisites
src/docker-osx-dev:508
909 0.1% 2 check_prerequisites
src/docker-osx-dev:954
908 0.1% 2 case "$cmd" in
src/docker-osx-dev:1015
905 0.1% 2 readonly LOG_LEVEL_WARN="WARN"
src/docker-osx-dev:19
903 0.1% 2 readonly LOG_LEVEL_ERROR="ERROR"
src/docker-osx-dev:20
903 0.1% 1 encoded_name="$(encode_name "$name")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:42
903 0.1% 2 readonly ZSH_RC="$HOME/.zshrc"
src/docker-osx-dev:28
901 0.1% 2 readonly COLOR_DEBUG='\033[1;36m'
src/docker-osx-dev:9
898 0.1% 2 local ignore_file="$DEFAULT_IGNORE_FILE"
src/docker-osx-dev:959
895 0.1% 1 printf "\n"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:76
892 0.1% 2 bats_test_function test_configure-2d5fpaths-2d5fto-2d5fsync_with_non-2dexistent_docker-2dcompose_file_results_in_syncing_the_current_directory
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:88
890 0.1% 2 local log_level="$DEFAULT_LOG_LEVEL"
src/docker-osx-dev:957
887 0.1% 2 [ "${name:0:1}" = "/" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:36
887 0.1% 2 filename="$BATS_TEST_DIRNAME/${name}.bash"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:39
882 0.1% 2 test_mode
src/docker-osx-dev:916
878 0.1% 2 handle_command "$@"
src/docker-osx-dev:953
876 0.1% 2 readonly COLOR_WARN='\033[1;33m'
src/docker-osx-dev:11
873 0.1% 2 readonly DEFAULT_IGNORE_FILE=".dockerignore"
src/docker-osx-dev:49
871 0.1% 2 source "$BATS_TEST_SOURCE"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:327
868 0.1% 2 test_mode
src/docker-osx-dev:1027
868 0.1% 2 readonly BOOT2DOCKER_SSH_URL="$BOOT2DOCKER_USER@$DOCKER_HOST_NAME"
src/docker-osx-dev:41
867 0.1% 2 local name="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:33
864 0.1% 2 local excludes=()
src/docker-osx-dev:961
860 0.1% 2 clear_to_end_of_line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:96
857 0.1% 2 readonly TEST_COMMAND="test_mode"
src/docker-osx-dev:35
857 0.1% 2 readonly ENV_FILE_COMMENT="\n# docker-osx-dev\n"
src/docker-osx-dev:29
856 0.1% 2 readonly COLOR_ERROR='\033[0;31m'
src/docker-osx-dev:12
855 0.1% 2 readonly DEFAULT_COMMAND="$SYNC_COMMAND"
src/docker-osx-dev:36
853 0.1% 2 BATS_TMPDIR="${TMPDIR%/}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:305
847 0.1% 2 readonly DEFAULT_COMPOSE_FILE="docker-compose.yml"
src/docker-osx-dev:44
844 0.1% 2 readonly DEFAULT_EXCLUDES=".git"
src/docker-osx-dev:48
843 0.1% 2 [ "$1" = "-c" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:7
843 0.1% 2 readonly BOOT2DOCKER_USER="docker"
src/docker-osx-dev:40
842 0.1% 2 load test_helper
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:32
841 0.1% 2 local filename
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:34
839 0.1% 2 BATS_TEST_FILENAME="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:18
837 0.1% 1 type -t "$BATS_TEST_NAME"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:281
837 0.1% 2 readonly HOSTS_FILE="/etc/hosts"
src/docker-osx-dev:32
837 0.1% 2 readonly SYNC_COMMAND="sync"
src/docker-osx-dev:33
833 0.1% 2 set -e
src/docker-osx-dev:6
833 0.1% 2 readonly DOCKER_HOST_NAME="dockerhost"
src/docker-osx-dev:39
831 0.1% 2 readonly INSTALL_COMMAND="install"
src/docker-osx-dev:34
825 0.1% 2 _buffer=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:128
824 0.1% 2 [ "$1" = "-x" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:13
824 0.1% 2 readonly DEFAULT_PATHS_TO_SYNC="."
src/docker-osx-dev:47
820 0.1% 2 load test_helper
/tmp/bats.3421.src:7
816 0.1% 2 [ -z "$BATS_TEST_FILENAME" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:19
812 0.1% 2 CURRENT_LOG_LEVEL="$DEFAULT_LOG_LEVEL"
src/docker-osx-dev:56
804 0.1% 1 count_column_left=$(( $screen_width - $count_column_width ))
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:25
804 0.1% 1 go_to_column 1
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:91
801 0.1% 2 [ -z "$BATS_TEST_SOURCE" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:324
801 0.1% 2 PATHS_TO_SYNC=""
src/docker-osx-dev:54
801 0.1% 2 EXCLUDES=""
src/docker-osx-dev:55
781 0.0% 2 exec 3<&1
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:330
780 0.0% 2 [ ! -f "$BATS_TEST_FILENAME" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:22
779 0.0% 1 "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:40
778 0.0% 2 shift
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:15
777 0.0% 2 flush
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:126
775 0.0% 2 bats_evaluate_preprocessed_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:323
770 0.0% 2 BATS_EXTENDED_SYNTAX="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:14
767 0.0% 2 BATS_PARENT_TMPNAME="$BATS_TMPDIR/bats.$PPID"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:309
758 0.0% 2 BATS_EXTENDED_SYNTAX=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:12
727 0.0% 2 shift
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:26
725 0.0% 2 [ "$#" -eq 0 ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:332
715 0.0% 1 echo "configure_paths_to_sync with non-existent docker-compose file results in syncing the current directory"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:41
713 0.0% 1 options=()
/usr/local/bin/bats:60
707 0.0% 1 echo "$result"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:29
694 0.0% 1 BATS_TEST_SOURCE="${BATS_TMPNAME}.src"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:313
689 0.0% 1 set -e
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:2
669 0.0% 1 echo "s"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:117
634 0.0% 1 set -e
/usr/local/bin/bats:2
627 0.0% 1 exec "$command" $count_flag $extended_syntax_flag "${filenames[@]}"
/usr/local/bin/bats:142
589 0.0% 1 name="${line#* $index }"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:142
581 0.0% 1 printf "%s" "$string"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:87
560 0.0% 1 go_to_column $count_column_left
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:91
552 0.0% 1 abs_dirname "$0"
/usr/local/bin/bats:55
533 0.0% 1 printf_with_truncation $(( $count_column_left - 1 )) " %s" "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:33
533 0.0% 1 [[ "$line" =~ $skip_expr ]]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:148
529 0.0% 1 "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:31
512 0.0% 1 pattern='^ *@test *([^ ].*) *\{ *(.*)$'
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:34
512 0.0% 1 go_to_column 1
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:37
510 0.0% 1 [ "${#string}" -gt "$width" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:84
504 0.0% 1 printf_with_truncation $(( $count_column_left - 1 )) " %s" "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:79
500 0.0% 1 printf " ✓ %s" "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:42
500 0.0% 1 skipped=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:14
496 0.0% 1 name="${name//_/-5f}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:9
485 0.0% 1 abs_dirname "$0"
/usr/local/bin/bats:33
479 0.0% 1 go_to_column $count_column_left
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:35
477 0.0% 1 flush
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:144
477 0.0% 1 trap "bats_cleanup_preprocessed_source" err exit
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:315
477 0.0% 1 trap "bats_cleanup_preprocessed_source; exit 1" int
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:316
477 0.0% 1 name="${name//-/-2d}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:10
477 0.0% 1 shift
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:81
476 0.0% 1 local width="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:80
475 0.0% 1 local dirname="$PWD"
/usr/local/bin/bats:49
472 0.0% 1 printf "%${#count}s/${count}" "$index"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:36
469 0.0% 1 "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:67
469 0.0% 1 cd "$OLDPWD"
/usr/local/bin/bats:50
469 0.0% 1 bats_perform_test "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:343
467 0.0% 1 set -T
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:4
467 0.0% 1 clear_to_end_of_line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:34
467 0.0% 1 trap finish EXIT
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:136
463 0.0% 1 bats_perform_tests "${BATS_TEST_NAMES[@]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:339
461 0.0% 1 plural "$count"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:116
460 0.0% 1 plural "$count"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:68
454 0.0% 1 go_to_column 0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:41
450 0.0% 1 go_to_column 0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:32
450 0.0% 1 plural "$failures"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:70
448 0.0% 1 update_screen_width
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:23
446 0.0% 1 count_column_width=$(( ${#count} * 2 + 2 ))
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:16
444 0.0% 1 arguments=()
/usr/local/bin/bats:61
442 0.0% 1 bats_evaluate_preprocessed_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:334
440 0.0% 1 _buffer=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:120
440 0.0% 1 [ "${#filenames[@]}" -eq 1 ]
/usr/local/bin/bats:127
437 0.0% 1 plural "$failures"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:116
436 0.0% 1 abs_dirname .
/usr/local/bin/bats:57
430 0.0% 1 abs_dirname "$BATS_LIBEXEC"
/usr/local/bin/bats:33
427 0.0% 1 local result="test_"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:6
427 0.0% 1 expand_path "$filename"
/usr/local/bin/bats:47
427 0.0% 1 for arg in "$@"
/usr/local/bin/bats:62
426 0.0% 1 index=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:33
423 0.0% 1 encode_name "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:42
423 0.0% 1 formatter="bats-format-tap-stream"
/usr/local/bin/bats:135
421 0.0% 1 BATS_TEST_NAME="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:280
421 0.0% 1 BATS_TEST_SOURCE="${BATS_PARENT_TMPNAME}.src"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:325
421 0.0% 1 eval echo "$quoted_name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:41
419 0.0% 1 abs_dirname "$BATS_LIBEXEC"
/usr/local/bin/bats:56
415 0.0% 1 clear_color
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:112
415 0.0% 1 [ -n "$CI" ]
/usr/local/bin/bats:81
413 0.0% 1 expand_path "$filename"
/usr/local/bin/bats:123
409 0.0% 1 abs_dirname .
/usr/local/bin/bats:33
409 0.0% 1 _buffer="${_buffer}$("$@")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:166
408 0.0% 1 [[ ! "$name" =~ [^[:alnum:]\ _-] ]]
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:8
407 0.0% 1 name="${name// /_}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:11
406 0.0% 1 let index+=1
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:141
405 0.0% 1 BATS_TEST_NUMBER="$2"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:282
405 0.0% 1 [ "$skipped" -gt 0 ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:72
404 0.0% 1 clear_to_end_of_line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:101
403 0.0% 1 trap update_screen_width WINCH
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:28
402 0.0% 1 local name="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:5
401 0.0% 1 echo
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:102
400 0.0% 1 buffer begin
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:122
399 0.0% 1 advance
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:100
398 0.0% 1 echo "1..$#"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:269
396 0.0% 1 clear_color
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:103
396 0.0% 1 BATS_COUNT_ONLY=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:6
395 0.0% 1 buffer begin
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:143
394 0.0% 1 set -E
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:3
394 0.0% 1 set -e
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:2
388 0.0% 1 name=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:15
388 0.0% 1 advance
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:43
386 0.0% 1 filenames=()
/usr/local/bin/bats:114
386 0.0% 1 bats_perform_test "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:279
382 0.0% 1 bats_preprocess_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:312
382 0.0% 1 extended_syntax_flag="-x"
/usr/local/bin/bats:134
382 0.0% 1 command="bats-exec-test"
/usr/local/bin/bats:128
380 0.0% 1 [ -z "$BATS_TEST_NUMBER" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:283
380 0.0% 1 echo "${encoded_name}() { bats_test_begin ${quoted_name} ${index}; ${body}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:44
377 0.0% 1 tests=()
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:32
376 0.0% 1 bats_perform_tests "${BATS_TEST_NAMES[@]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:268
376 0.0% 1 bats_evaluate_preprocessed_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:342
375 0.0% 1 set -o pipefail execfail
/usr/local/bin/bats:141
374 0.0% 1 failures=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:13
368 0.0% 1 BATS_TEST_COMPLETED=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:288
366 0.0% 1 update_screen_width
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:29
366 0.0% 1 BATS_TEARDOWN_COMPLETED=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:289
365 0.0% 1 arguments[${#arguments[*]}]="$arg"
/usr/local/bin/bats:75
364 0.0% 1 tests["${#tests[@]}"]="$encoded_name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:43
363 0.0% 1 encode_name "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:4
362 0.0% 1 [ "${arg:0:1}" = "-" ]
/usr/local/bin/bats:63
360 0.0% 1 flush
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:132
359 0.0% 1 _buffer="${_buffer}$("$@")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:131
358 0.0% 1 for filename in "${arguments[@]}"
/usr/local/bin/bats:115
352 0.0% 1 [ -d "$filename" ]
/usr/local/bin/bats:116
351 0.0% 1 [ "${#arguments[@]}" -eq 0 ]
/usr/local/bin/bats:109
351 0.0% 1 quoted_name="${BASH_REMATCH[1]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:39
351 0.0% 1 [ -n "$BATS_COUNT_ONLY" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:336
349 0.0% 1 bats_preprocess_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:333
348 0.0% 1 unset count_flag pretty
/usr/local/bin/bats:79
347 0.0% 1 result+="$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:12
346 0.0% 1 buffer summary
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:122
345 0.0% 1 command -v tput > /dev/null
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:5
343 0.0% 1 [ -n "$pretty" ]
/usr/local/bin/bats:133
334 0.0% 1 pretty="1"
/usr/local/bin/bats:80
334 0.0% 1 [ -t 0 ]
/usr/local/bin/bats:80
334 0.0% 1 buffer summary
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:165
331 0.0% 1 [ -t 1 ]
/usr/local/bin/bats:80
326 0.0% 1 set -e
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:2
322 0.0% 1 body="${BASH_REMATCH[2]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:40
318 0.0% 1 for test_name in "${tests[@]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:50
314 0.0% 1 bats-preprocess > "$BATS_TEST_SOURCE"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:314
306 0.0% 1 IFS= read -r header
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:8
283 0.0% 1 buffer pass
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:152
280 0.0% 1 header_pattern='[0-9]+\.\.[0-9]+'
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:7
273 0.0% 1 buffer pass
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:122
250 0.0% 1 [[ "$header" =~ $header_pattern ]]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:10
229 0.0% 1 count="${header:3}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:11
225 0.0% 1 index=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:12
132 0.0% 1 status=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:271
113 0.0% 1 for test_name in "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:
Function breakdown
==================
Total µs Total % Count Function
215073 13.6% 15 bats_evaluate_preprocessed_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
180479 11.4% 119 source
/tmp/bats.3421.src
122172 7.7% 89 abs_dirname
/usr/local/bin/bats
67400 4.3% 74 source
src/docker-osx-dev
62231 3.9% 13 buffer
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
41745 2.6% 20 resolve_link
/usr/local/bin/bats
28114 1.8% 32 handle_command
src/docker-osx-dev
18356 1.2% 7 begin
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
13980 0.9% 7 bats_preprocess_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
12306 0.8% 9 bats_perform_test
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
11512 0.7% 10 check_prerequisites
src/docker-osx-dev
11260 0.7% 4 pass
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
10040 0.6% 7 expand_path
/usr/local/bin/bats
8375 0.5% 14 load
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
7544 0.5% 7 summary
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
7403 0.5% 12 go_to_column
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
5728 0.4% 4 advance
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
4819 0.3% 4 update_screen_width
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
4720 0.3% 7 printf_with_truncation
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
4163 0.3% 4 finish
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
4038 0.3% 9 encode_name
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess
2998 0.2% 6 bats_test_function
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
2905 0.2% 5 plural
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
2646 0.2% 6 flush
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
2006 0.1% 6 bats_perform_tests
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
1952 0.1% 4 test_mode
src/docker-osx-dev
1835 0.1% 4 clear_to_end_of_line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
1519 0.1% 2 clear_color
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.