Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bashprof output on running a sourced function using the run method 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
123368 15.4% 306 [[ "$line" =~ $pattern ]]
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:38
119846 15.0% 307 IFS= read -r line
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:36
112972 14.1% 305 printf "%s\n" "$line"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:46
108343 13.5% 306 let index+=1
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:37
29622 3.7% 5 head -1
/usr/local/bin/bats:30
25940 3.2% 3 IFS= read -r line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:138
8450 1.1% 1 "$formatter"
/usr/local/bin/bats:142
8211 1.0% 1 trap "bats_debug_trap \"\$BASH_SOURCE\"" debug
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:290
7195 0.9% 2 BOOT2DOCKER_SSH_KEY=""
src/docker-osx-dev:57
6025 0.8% 2 uname
src/docker-osx-dev:509
4866 0.6% 1 tr -d '\r' < "$BATS_TEST_FILENAME"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:314
4652 0.6% 5 $(type -p greadlink readlink | head -1) "$1"
/usr/local/bin/bats:30
4362 0.5% 5 path="$(resolve_link "$name" || true)"
/usr/local/bin/bats:40
4337 0.5% 2 dirname "$BATS_TEST_FILENAME"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:29
3707 0.5% 1 echo
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:314
3464 0.4% 2 BATS_TEST_NAMES=()
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:30
3448 0.4% 5 type -p greadlink readlink
/usr/local/bin/bats:30
3159 0.4% 8 [ -n "$path" ]
/usr/local/bin/bats:37
3132 0.4% 1 BATS_LIBEXEC="$(abs_dirname "$0")"
/usr/local/bin/bats:55
3087 0.4% 3 local cwd="$(pwd)"
/usr/local/bin/bats:34
2993 0.4% 3 _buffer="${_buffer}$("$@")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:123
2969 0.4% 2 source "${filename}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:47
2811 0.4% 1 basename "$1"
/usr/local/bin/bats:51
2644 0.3% 1 dirname "$1"
/usr/local/bin/bats:48
2508 0.3% 4 printf "\x1B[%dG" $(( $column + 1 ))
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:93
2464 0.3% 3 pwd
/usr/local/bin/bats:34
2401 0.3% 5 resolve_link "$name"
/usr/local/bin/bats:29
2230 0.3% 2 local readonly os=$(uname)
src/docker-osx-dev:509
2224 0.3% 3 true
/usr/local/bin/bats:40
2183 0.3% 3 cd "$cwd"
/usr/local/bin/bats:44
2154 0.3% 5 resolve_link "$name"
/usr/local/bin/bats:40
2116 0.3% 5 cd "${path%/*}"
/usr/local/bin/bats:38
2086 0.3% 1 tput cols
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:24
1984 0.2% 2 BATS_TEST_DIRNAME="$(dirname "$BATS_TEST_FILENAME")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:29
1943 0.2% 4 local column="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:92
1800 0.2% 4 [[ $# > 0 ]]
src/docker-osx-dev:963
1770 0.2% 5 local name="${path##*/}"
/usr/local/bin/bats:39
1459 0.2% 2 [ "$1" -eq 1 ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:117
1398 0.2% 2 BATS_TMPDIR="${TMPDIR%/}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:305
1300 0.2% 2 [ -z "$TMPDIR" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:302
1261 0.2% 1 printf "\n"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:76
1219 0.2% 2 type brew > /dev/null 2>&1
src/docker-osx-dev:516
1197 0.1% 3 pwd
/usr/local/bin/bats:43
1164 0.1% 2 printf "%s" "$_buffer"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:127
1163 0.1% 2 return 0
src/docker-osx-dev:917
1162 0.1% 1 [ "$(type -t "$BATS_TEST_NAME" || true)" = "function" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:281
1157 0.1% 3 local path="$1"
/usr/local/bin/bats:35
1140 0.1% 1 printf "\n%d test%s" "$count" "$(plural "$count")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:68
1139 0.1% 2 flush
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:126
1130 0.1% 2 _buffer=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:128
1105 0.1% 1 screen_width="$(tput cols)"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:24
1087 0.1% 1 type -t "$BATS_TEST_NAME"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:281
1079 0.1% 1 BATS_TEST_SOURCE="${BATS_TMPNAME}.src"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:313
1076 0.1% 1 printf "\x1B[0m"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:113
1064 0.1% 2 readonly COLOR_ERROR='\033[0;31m'
src/docker-osx-dev:12
1054 0.1% 1 name="$(eval echo "$quoted_name")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:41
1052 0.1% 2 clear_to_end_of_line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:96
1046 0.1% 2 BATS_TEST_NAMES["${#BATS_TEST_NAMES[@]}"]="$test_name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:90
1037 0.1% 1 printf "\n"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:133
1026 0.1% 2 handle_command "$@"
src/docker-osx-dev:1036
1025 0.1% 1 local string="$(printf "$@")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:82
1017 0.1% 2 [[ ! "$os" = "Darwin" ]]
src/docker-osx-dev:511
1012 0.1% 2 BATS_OUT="${BATS_TMPNAME}.out"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:310
1012 0.1% 2 readonly LOG_LEVEL_ERROR="ERROR"
src/docker-osx-dev:20
1000 0.1% 2 shift
src/docker-osx-dev:1012
998 0.1% 2 case "$line" in
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:139
992 0.1% 1 filenames["${#filenames[@]}"]="$(expand_path "$filename")"
/usr/local/bin/bats:123
992 0.1% 2 check_prerequisites
src/docker-osx-dev:954
988 0.1% 1 exec "$command" $count_flag $extended_syntax_flag "${filenames[@]}"
/usr/local/bin/bats:142
985 0.1% 1 printf ", %d failure%s" "$failures" "$(plural "$failures")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:70
971 0.1% 1 printf "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:82
969 0.1% 2 case $key in
src/docker-osx-dev:966
967 0.1% 2 readonly INSTALL_COMMAND="install"
src/docker-osx-dev:34
966 0.1% 2 readonly COLOR_DEBUG='\033[1;36m'
src/docker-osx-dev:9
959 0.1% 2 [ -z "$BATS_TEST_SOURCE" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:324
948 0.1% 2 local test_name="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:89
944 0.1% 2 readonly LOG_LEVEL_INFO="INFO"
src/docker-osx-dev:18
944 0.1% 2 key="$1"
src/docker-osx-dev:964
944 0.1% 2 "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:123
938 0.1% 2 readonly BASH_RC="$HOME/.bashrc"
src/docker-osx-dev:27
937 0.1% 2 set -e
src/docker-osx-dev:6
935 0.1% 2 [ "${name:0:1}" = "/" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:36
935 0.1% 2 readonly COLOR_INFO='\033[0;32m'
src/docker-osx-dev:10
934 0.1% 2 readonly LOG_LEVEL_INSTRUCTIONS="INSTRUCTIONS"
src/docker-osx-dev:21
929 0.1% 2 source src/docker-osx-dev "test_mode"
/tmp/bats.4486.src:6
929 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
925 0.1% 2 case "$cmd" in
src/docker-osx-dev:1015
923 0.1% 1 count_column_left=$(( $screen_width - $count_column_width ))
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:25
920 0.1% 1 cd "$(dirname "$1")" 2> /dev/null
/usr/local/bin/bats:48
919 0.1% 2 [ "$#" -eq 0 ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:332
915 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 filename="$BATS_TEST_DIRNAME/${name}.bash"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:39
912 0.1% 2 readonly COLOR_WARN='\033[1;33m'
src/docker-osx-dev:11
907 0.1% 2 cmd="$TEST_COMMAND"
src/docker-osx-dev:974
907 0.1% 1 export BATS_PREFIX="$(abs_dirname "$BATS_LIBEXEC")"
/usr/local/bin/bats:56
906 0.1% 1 echo "s"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:117
903 0.1% 2 readonly DEFAULT_COMPOSE_FILE="docker-compose.yml"
src/docker-osx-dev:44
903 0.1% 2 readonly DEFAULT_LOG_LEVEL="$LOG_LEVEL_INFO"
src/docker-osx-dev:23
903 0.1% 1 echo "$dirname/$(basename "$1")"
/usr/local/bin/bats:51
903 0.1% 2 CURRENT_LOG_LEVEL="$DEFAULT_LOG_LEVEL"
src/docker-osx-dev:56
899 0.1% 2 [ -f "$filename" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:42
899 0.1% 2 readonly ZSH_RC="$HOME/.zshrc"
src/docker-osx-dev:28
899 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.4486.src:307
898 0.1% 2 readonly LOG_LEVEL_WARN="WARN"
src/docker-osx-dev:19
897 0.1% 2 readonly LOG_LEVEL_DEBUG="DEBUG"
src/docker-osx-dev:17
896 0.1% 2 check_prerequisites
src/docker-osx-dev:508
895 0.1% 1 encoded_name="$(encode_name "$name")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:42
894 0.1% 2 readonly COLOR_INSTRUCTIONS='\033[0;37m'
src/docker-osx-dev:13
891 0.1% 2 local cmd="$DEFAULT_COMMAND"
src/docker-osx-dev:956
888 0.1% 2 readonly TEST_COMMAND="test_mode"
src/docker-osx-dev:35
887 0.1% 2 exec 3<&1
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:330
886 0.1% 2 local excludes=()
src/docker-osx-dev:961
884 0.1% 2 BATS_TMPNAME="$BATS_TMPDIR/bats.$$"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:308
883 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
883 0.1% 2 readonly ENV_FILE_COMMENT="\n# docker-osx-dev\n"
src/docker-osx-dev:29
882 0.1% 2 readonly COLOR_END='\033[0m'
src/docker-osx-dev:14
881 0.1% 2 local ignore_file="$DEFAULT_IGNORE_FILE"
src/docker-osx-dev:959
880 0.1% 1 export BATS_CWD="$(abs_dirname .)"
/usr/local/bin/bats:57
877 0.1% 2 test_mode
src/docker-osx-dev:916
876 0.1% 2 source "$BATS_TEST_SOURCE"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:327
875 0.1% 2 test_mode
src/docker-osx-dev:1027
870 0.1% 2 set -E
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:3
870 0.1% 2 readonly BASH_PROFILE="$HOME/.bash_profile"
src/docker-osx-dev:26
869 0.1% 2 readonly BOOT2DOCKER_SSH_URL="$BOOT2DOCKER_USER@$DOCKER_HOST_NAME"
src/docker-osx-dev:41
868 0.1% 2 readonly HOSTS_FILE="/etc/hosts"
src/docker-osx-dev:32
867 0.1% 2 local docker_compose_file="$DEFAULT_COMPOSE_FILE"
src/docker-osx-dev:958
865 0.1% 2 local log_level="$DEFAULT_LOG_LEVEL"
src/docker-osx-dev:957
864 0.1% 2 set -e
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:2
864 0.1% 2 EXCLUDES=""
src/docker-osx-dev:55
864 0.1% 2 handle_command "$@"
src/docker-osx-dev:953
862 0.1% 2 printf "\x1B[K"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:97
862 0.1% 1 echo "bats_test_function ${test_name}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:51
857 0.1% 2 readonly DEFAULT_IGNORE_FILE=".dockerignore"
src/docker-osx-dev:49
855 0.1% 2 local filename
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:34
848 0.1% 2 readonly SYNC_COMMAND="sync"
src/docker-osx-dev:33
847 0.1% 2 readonly DEFAULT_PATHS_TO_SYNC="."
src/docker-osx-dev:47
845 0.1% 2 bats_evaluate_preprocessed_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:323
845 0.1% 2 readonly BOOT2DOCKER_USER="docker"
src/docker-osx-dev:40
844 0.1% 2 readonly DEFAULT_COMMAND="$SYNC_COMMAND"
src/docker-osx-dev:36
841 0.1% 2 [ "$1" = "-c" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:7
839 0.1% 2 local paths_to_sync=()
src/docker-osx-dev:960
837 0.1% 2 BATS_PARENT_TMPNAME="$BATS_TMPDIR/bats.$PPID"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:309
833 0.1% 2 readonly DOCKER_HOST_NAME="dockerhost"
src/docker-osx-dev:39
828 0.1% 2 readonly DEFAULT_EXCLUDES=".git"
src/docker-osx-dev:48
824 0.1% 1 echo "$result"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:29
814 0.1% 2 local name="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:33
800 0.1% 2 load test_helper
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:32
795 0.1% 2 PATHS_TO_SYNC=""
src/docker-osx-dev:54
793 0.1% 2 load test_helper
/tmp/bats.4486.src:7
791 0.1% 1 bats-preprocess > "$BATS_TEST_SOURCE"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:314
775 0.1% 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
767 0.1% 2 BATS_TEST_FILENAME="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:18
765 0.1% 2 exit "$status"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:276
763 0.1% 1 abs_dirname "$0"
/usr/local/bin/bats:55
744 0.1% 1 for arg in "$@"
/usr/local/bin/bats:62
741 0.1% 1 go_to_column $count_column_left
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:35
740 0.1% 2 [ ! -f "$BATS_TEST_FILENAME" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:22
734 0.1% 2 BATS_EXTENDED_SYNTAX=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:12
708 0.1% 2 [ -z "$BATS_TEST_FILENAME" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:19
705 0.1% 1 printf "%${#count}s/${count}" "$index"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:36
700 0.1% 2 shift
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:26
699 0.1% 2 [ "$1" = "-x" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:13
685 0.1% 2 shift
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:15
677 0.1% 1 _buffer="${_buffer}$("$@")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:166
675 0.1% 2 BATS_EXTENDED_SYNTAX="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:14
653 0.1% 1 [ "${#string}" -gt "$width" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:84
644 0.1% 1 abs_dirname "$0"
/usr/local/bin/bats:33
638 0.1% 1 printf "%s" "$string"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:87
630 0.1% 1 set -e
/usr/local/bin/bats:2
622 0.1% 1 go_to_column $count_column_left
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:91
591 0.1% 1 set -o pipefail execfail
/usr/local/bin/bats:141
585 0.1% 1 go_to_column 1
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:37
583 0.1% 1 flush
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:144
562 0.1% 1 [ "$skipped" -gt 0 ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:72
558 0.1% 1 clear_color
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:112
556 0.1% 1 skipped=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:14
541 0.1% 1 buffer pass
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:122
538 0.1% 1 name="${line#* $index }"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:142
523 0.1% 1 advance
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:43
513 0.1% 1 plural "$failures"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:70
512 0.1% 1 _buffer="${_buffer}$("$@")"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:131
511 0.1% 1 clear_color
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:103
506 0.1% 1 set -e
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:2
505 0.1% 1 advance
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:100
504 0.1% 1 arguments=()
/usr/local/bin/bats:61
499 0.1% 1 clear_to_end_of_line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:101
496 0.1% 1 "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:31
494 0.1% 1 go_to_column 0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:91
488 0.1% 1 export PATH="$BATS_LIBEXEC:$PATH"
/usr/local/bin/bats:58
485 0.1% 1 flush
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:132
483 0.1% 1 printf_with_truncation $(( $count_column_left - 1 )) " %s" "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:33
477 0.1% 1 _buffer=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:120
477 0.1% 1 trap "bats_cleanup_preprocessed_source" err exit
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:315
476 0.1% 1 expand_path "$filename"
/usr/local/bin/bats:47
473 0.1% 1 abs_dirname "$BATS_LIBEXEC"
/usr/local/bin/bats:56
471 0.1% 1 bats_preprocess_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:333
469 0.1% 1 trap "bats_cleanup_preprocessed_source; exit 1" int
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:316
467 0.1% 1 buffer begin
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:143
465 0.1% 1 trap finish EXIT
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:136
465 0.1% 1 bats_evaluate_preprocessed_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:342
462 0.1% 1 clear_to_end_of_line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:34
461 0.1% 1 local width="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:80
461 0.1% 1 abs_dirname "$BATS_LIBEXEC"
/usr/local/bin/bats:33
461 0.1% 1 plural "$count"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:68
461 0.1% 1 BATS_COUNT_ONLY=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:6
454 0.1% 1 shift
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:81
452 0.1% 1 set -T
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:4
450 0.1% 1 bats_perform_test "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:343
450 0.1% 1 header_pattern='[0-9]+\.\.[0-9]+'
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:7
448 0.1% 1 "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:67
447 0.1% 1 [ "${#filenames[@]}" -eq 1 ]
/usr/local/bin/bats:127
446 0.1% 1 extended_syntax_flag="-x"
/usr/local/bin/bats:134
445 0.1% 1 go_to_column 1
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:91
444 0.1% 1 for test_name in "${tests[@]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:50
443 0.1% 1 bats_preprocess_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:312
436 0.1% 1 name="${name//-/-2d}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:10
436 0.1% 1 [[ "$line" =~ $skip_expr ]]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:148
434 0.1% 1 [ "${arg:0:1}" = "-" ]
/usr/local/bin/bats:63
432 0.1% 1 let test_number+=1
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:274
430 0.1% 1 go_to_column 0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:32
430 0.1% 1 plural "$count"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:116
429 0.1% 1 command="bats-exec-test"
/usr/local/bin/bats:128
429 0.1% 1 index=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:33
427 0.1% 1 update_screen_width
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:23
426 0.1% 1 formatter="bats-format-tap-stream"
/usr/local/bin/bats:135
425 0.1% 1 echo "${encoded_name}() { bats_test_begin ${quoted_name} ${index}; ${body}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:44
423 0.1% 1 cd "$OLDPWD"
/usr/local/bin/bats:50
421 0.1% 1 printf_with_truncation $(( $count_column_left - 1 )) " %s" "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:79
419 0.1% 1 eval echo "$quoted_name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:41
415 0.1% 1 unset count_flag pretty
/usr/local/bin/bats:79
414 0.1% 1 printf " ✓ %s" "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:42
413 0.1% 1 name="${name//_/-5f}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:9
413 0.1% 1 count_column_width=$(( ${#count} * 2 + 2 ))
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:16
413 0.1% 1 name="${name// /_}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:11
410 0.1% 1 let index+=1
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:141
408 0.1% 1 encode_name "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:42
407 0.1% 1 abs_dirname .
/usr/local/bin/bats:33
405 0.1% 1 [ -n "$CI" ]
/usr/local/bin/bats:81
405 0.1% 1 [[ ! "$name" =~ [^[:alnum:]\ _-] ]]
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:8
399 0.0% 1 BATS_TEST_NUMBER="$2"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:282
399 0.0% 1 plural "$failures"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:116
399 0.0% 1 pattern='^ *@test *([^ ].*) *\{ *(.*)$'
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:34
396 0.0% 1 tests["${#tests[@]}"]="$encoded_name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:43
394 0.0% 1 echo
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:102
394 0.0% 1 rm -f "$BATS_TEST_SOURCE"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:320
392 0.0% 1 local dirname="$PWD"
/usr/local/bin/bats:49
390 0.0% 1 BATS_TEST_SOURCE="${BATS_PARENT_TMPNAME}.src"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:325
389 0.0% 1 arguments[${#arguments[*]}]="$arg"
/usr/local/bin/bats:75
388 0.0% 1 options=()
/usr/local/bin/bats:60
385 0.0% 1 BATS_TEST_NAME="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:280
384 0.0% 1 buffer summary
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:122
383 0.0% 1 name=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:15
382 0.0% 1 abs_dirname .
/usr/local/bin/bats:57
381 0.0% 1 BATS_TEARDOWN_COMPLETED=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:289
381 0.0% 1 bats_perform_test "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:279
379 0.0% 1 local name="$1"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:5
378 0.0% 1 bats_perform_tests "${BATS_TEST_NAMES[@]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:339
378 0.0% 1 filenames=()
/usr/local/bin/bats:114
375 0.0% 1 encode_name "$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:4
372 0.0% 1 expand_path "$filename"
/usr/local/bin/bats:123
372 0.0% 1 [ -z "$BATS_TEST_NUMBER" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:283
372 0.0% 1 buffer begin
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:122
370 0.0% 1 skip_expr="ok $index # skip (\(([^)]*)\))?"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:147
368 0.0% 1 local result="test_"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:6
365 0.0% 1 quoted_name="${BASH_REMATCH[1]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:39
365 0.0% 1 [ -n "$pretty" ]
/usr/local/bin/bats:133
363 0.0% 1 buffer pass
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:152
363 0.0% 1 echo "1..$#"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:269
361 0.0% 1 BATS_TEST_COMPLETED=""
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:288
361 0.0% 1 result+="$name"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:12
358 0.0% 1 bats_evaluate_preprocessed_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:334
357 0.0% 1 exit "$status"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:319
353 0.0% 1 tests=()
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:32
347 0.0% 1 buffer summary
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:165
347 0.0% 1 bats_perform_tests "${BATS_TEST_NAMES[@]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:268
344 0.0% 1 body="${BASH_REMATCH[2]}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess:40
340 0.0% 1 trap update_screen_width WINCH
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:28
340 0.0% 1 [ -t 0 ]
/usr/local/bin/bats:80
340 0.0% 1 [ -d "$filename" ]
/usr/local/bin/bats:116
340 0.0% 1 [ -n "$BATS_COUNT_ONLY" ]
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:336
339 0.0% 1 [ "${#arguments[@]}" -eq 0 ]
/usr/local/bin/bats:109
336 0.0% 1 failures=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:13
326 0.0% 1 pretty="1"
/usr/local/bin/bats:80
325 0.0% 1 [ -t 1 ]
/usr/local/bin/bats:80
321 0.0% 1 update_screen_width
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:29
320 0.0% 1 IFS= read -r header
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:8
316 0.0% 1 for filename in "${arguments[@]}"
/usr/local/bin/bats:115
220 0.0% 1 [[ "$header" =~ $header_pattern ]]
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:10
196 0.0% 1 index=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:12
186 0.0% 1 count="${header:3}"
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream:11
170 0.0% 1 status=0
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:271
134 0.0% 1 for test_name in "$@"
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:272
120 0.0% 1 test_number=1
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test:270
Function breakdown
==================
Total µs Total % Count Function
217322 27.2% 15 bats_evaluate_preprocessed_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
181307 22.7% 119 source
/tmp/bats.4486.src
114628 14.3% 89 abs_dirname
/usr/local/bin/bats
67549 8.4% 74 source
src/docker-osx-dev
66747 8.3% 13 buffer
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
40124 5.0% 20 resolve_link
/usr/local/bin/bats
27945 3.5% 32 handle_command
src/docker-osx-dev
19499 2.4% 7 begin
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
12743 1.6% 9 bats_perform_test
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
11835 1.5% 7 bats_preprocess_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
11390 1.4% 10 check_prerequisites
src/docker-osx-dev
10175 1.3% 2 go_to_column
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
8573 1.1% 7 expand_path
/usr/local/bin/bats
8568 1.1% 7 summary
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
8189 1.0% 14 load
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
6166 0.8% 4 advance
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
6013 0.8% 11 go_to_column
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
4627 0.6% 7 printf_with_truncation
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
4543 0.6% 4 update_screen_width
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
4430 0.6% 4 finish
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
3978 0.5% 9 encode_name
/usr/local/Cellar/bats/0.4.0/libexec/bats-preprocess
3434 0.4% 6 flush
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
3194 0.4% 5 plural
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
3155 0.4% 8 bats_perform_tests
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
2878 0.4% 6 bats_test_function
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
2040 0.3% 4 test_mode
src/docker-osx-dev
1915 0.2% 4 clear_to_end_of_line
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
1634 0.2% 2 clear_color
/usr/local/Cellar/bats/0.4.0/libexec/bats-format-tap-stream
752 0.1% 2 bats_cleanup_preprocessed_source
/usr/local/Cellar/bats/0.4.0/libexec/bats-exec-test
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.