[unittest] remove unnecessay export for testing (#20868)

This commit is contained in:
ringabout 2022-12-02 03:31:48 +08:00 • committed by GitHub
commit 8266750497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -433,8 +433,6 @@ proc matchFilter(suiteName, testName, filter: string): bool =
return glob(suiteName, suiteAndTestFilters[0]) and return glob(suiteName, suiteAndTestFilters[0]) and
glob(testName, suiteAndTestFilters[1]) glob(testName, suiteAndTestFilters[1])
when defined(testing): export matchFilter
proc shouldRun(currentSuiteName, testName: string): bool = proc shouldRun(currentSuiteName, testName: string): bool =
## Check if a test should be run by matching suiteName and testName against ## Check if a test should be run by matching suiteName and testName against
## test filters. ## test filters.

View file

@ -23,6 +23,7 @@ targets: "c js"
""" """
import std/[unittest, sequtils, assertions] import std/[unittest, sequtils, assertions]
from std/unittest {.all.} import matchFilter
proc doThings(spuds: var int): int = proc doThings(spuds: var int): int =
spuds = 24 spuds = 24