/
AlexandrNarbaev
/
opencode_initializer
Обзор
Документация
Войти
/
AlexandrNarbaev
/
opencode_initializer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
tests/unit/test_opencode.sh
15 строк
552 B
Alexandr Narbaev
feat(v2.0.2): remove Moonshot/LiteLLM, restore test gates, wire dead modules
03 авг 2026, 22:59
03 авг 2026, 22:59
0eff737
Код
Авторство
О чём код?
#!/usr/bin/env bash set -euo pipefail P="$(cd "$(dirname "$0")/../.." && pwd)" O="$P/src/lib/11-opencode.sh" TP=0; TF=0 a() { local d="$1" c="$2"; if (eval "$c") &>/dev/null; then TP=$((TP+1)); else TF=$((TF+1)); echo " FAIL: $d" >&2; fi } a "exists" "[ -f $O ]" a "syntax" "bash -n $O" a "has opencode" "grep -qi opencode $O" a "has Bun" "grep -qi bun $O" a "has version" "grep -q opencode $O" a "has npm install" "grep -q npm $O" a "has _npm_install" "grep -q npm.install $O" echo "test_opencode: $TP passed, $TF failed" [ "$TF" -eq 0 ] || exit 1