• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dynamotn / dybatpho / 13343862467

15 Feb 2025 09:34AM UTC coverage: 99.507% (-0.5%) from 100.0%
13343862467

push

github

dynamotn
feat: add some array functions

11 of 12 new or added lines in 2 files covered. (91.67%)

202 of 203 relevant lines covered (99.51%)

41.52 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/init
1
#!/usr/bin/env bash
2
# @file init
3
# @brief Initial script
4
# @description This script should be sourced before any of
5
# the other scripts in this repo. Other scripts
6
# make use of ${DYBATPHO_DIR} to find each other.
7

8
# Require bash >= v4
9
if ((BASH_VERSINFO[0] < 4)); then
126✔
10
  # kcov(disabled)
11
  echo "dybatpho requires bash v4 or greater"
12
  echo "Current Bash Version: ${BASH_VERSION}"
13
  exit 1
14
  # kcov(enabled)
15
fi
16

17
# Default shell options
18
set -euo pipefail          # Strict mode
126✔
19
shopt -s nullglob globstar # Safer and better globbing
126✔
20
shopt -s extglob           # Extended globbing
126✔
21

22
# Get path to root of repository and export to subshell
23
DYBATPHO_DIR="$(dirname "${BASH_SOURCE[0]}")"
252✔
24
export DYBATPHO_DIR
126✔
25

26
# Load modules
27
while read module; do
882✔
28
  # shellcheck disable=SC1090
29
  . "${DYBATPHO_DIR}/src/${module}.sh"
756✔
NEW
30
done < "$DYBATPHO_DIR"/modules # kcov(ignore)
×
31

32
# Filter functions and re-export only dybatpho functions to subshells
33
eval "$(declare -F | sed -e 's/-f /-fx /' | grep 'x dybatpho::')"
630✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc