Skip to content

v.util.vtest

fn filter_vtest_only #

fn filter_vtest_only(paths []string, config FilterVTestConfig) []string

if VTEST_ONLY env var is set, returns tests that match the query

fn is_ownership_autofree_test #

fn is_ownership_autofree_test(path string) bool

is_ownership_autofree_test reports whether a test file exercises ownership or autofree.

fn skip_ownership_autofree_tests #

fn skip_ownership_autofree_tests() bool

skip_ownership_autofree_tests reports whether ownership/autofree test coverage is disabled. GitHub Actions disables it globally; local and other CI runs can opt in explicitly.

struct FilterVTestConfig #

@[params]
struct FilterVTestConfig {
pub:
	basepath    string
	fix_slashes bool = true
}