僅限於
Translation status: 繁體中文 reader-locale proof. Term names and code fences follow the zh-Hant pack; supporting prose may still be English.
Restricts a test to a named environment or target.
Syntax: 僅限於 <string> <string>
Category#
testing
Related#
None.
Examples#
radix/corpus/solum-in/solum-in.fab (canonical · keyword)#
Restricts a test to a named environment or target.
# =============================================================================
# 僅限於 — Restricts a test to a named environment or target.
# =============================================================================
#
# What this teaches:
# • Environment scoping — `僅限於 "ci"` restricts a test to only run in
# the specified environment (e.g., CI, local)
# • Useful for tests that depend on external infrastructure or specific
# runtime conditions
#
# Common mistakes:
# • Confusing `僅限於` (environment-scoping keyword) with `僅限` (stdlib module / test modifier).
# =============================================================================
# 僅限於 — environment-scoped test modifier
#
# GRAMMAR:
# testModifier :← '僅限於' stringLit
#
# EXPECTED OUTPUT:
# No 入口 — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only test modifier (whitelist: solum-in/solum-in.fab).
#
test "ci only" only_in "ci" {
assert true
}