#!/usr/bin/env bash set -e trap '' INT # shellcheck source=lib/bats-core/formatter.bash source "$BATS_ROOT/$BATS_LIBDIR/bats-core/formatter.bash" bats_tap_stream_plan() { printf "1..%d\n" "$1" } bats_tap_stream_begin() { # : } bats_tap_stream_ok() { # [ printf "ok %d %s" "$1" "$2" if [[ "${BATS_FORMATTER_TEST_DURATION-x}" != x ]]; then printf " # in %d ms" "$BATS_FORMATTER_TEST_DURATION" fi printf "\n" } bats_tap_stream_not_ok() { # printf "not ok %d %s" "$1" "$2" if [[ "${BATS_FORMATTER_TEST_DURATION-x}" != x ]]; then printf " # in %d ms" "$BATS_FORMATTER_TEST_DURATION" fi if [[ "${BATS_FORMATTER_TEST_TIMEOUT-x}" != x ]]; then printf " # timeout after %d s" "${BATS_FORMATTER_TEST_TIMEOUT}" fi printf "\n" } bats_tap_stream_skipped() { # if [[ $# -eq 3 ]]; then printf "ok %d %s # skip %s\n" "$1" "$2" "$3" else printf "ok %d %s # skip\n" "$1" "$2" fi } bats_tap_stream_comment() { # printf "# %s\n" "$1" } bats_tap_stream_suite() { # : } bats_tap_stream_unknown() { # printf "%s\n" "$1" } bats_parse_internal_extended_tap