Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

1.1 KB
Raw Blame
package native

// testdataFetchAttempted is set to true by testdata_fetch.go (compiled only with
// -tags fetch_testdata) once the external DeepDoc testdata has been fetched and
// linked into ./testdata. It is declared in this always-compiled (non-_test.go)
// file — rather than in a _test.go — so it is also defined when this package is
// compiled as a dependency of another package's test binary (e.g. native_analyzer
// imports native, and _test.go files are excluded from dependency builds). In the
// default build it stays false, so TestMain skips the package.
var testdataFetchAttempted bool

// testdataFetchFailed is set to true by testdata_fetch.go (compiled only with
// -tags fetch_testdata) when the external testdata download fails. It is
// declared here (always-compiled) so TestMain can read it. Under the
// fetch_testdata build tag a failed fetch must FAIL the package rather than
// silently skip — a missing fixture must never produce a green CI run. In the
// default build this stays false, so the absence of fixtures is a benign skip.
var testdataFetchFailed bool