fix: stop enqueueing disabled external table exports

This commit is contained in:
姚章浩
2026-08-13 14:49:44 +08:00
parent 0f30f8cec8
commit e5be9ee780
5 changed files with 42 additions and 10 deletions
@@ -127,6 +127,15 @@ func TestCoverageRepoInsertsSupportCaseOnlyForUncovered(t *testing.T) {
}
}
func TestCoverageRepoFAQExportStatusFollowsRuntimeFlag(t *testing.T) {
if got := faqExportStatus(false); got != "not_applicable" {
t.Fatalf("disabled status=%q", got)
}
if got := faqExportStatus(true); got != "pending" {
t.Fatalf("enabled status=%q", got)
}
}
func TestCoverageRepoUsesSingleTransaction(t *testing.T) {
src := readCoverageSource(t)
// Must use BeginTx