vendor tsgo
This commit is contained in:
25
tools/tsgo/internal/testutil/baseline/baseline_test.go
Normal file
25
tools/tsgo/internal/testutil/baseline/baseline_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
package baseline
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestSubmoduleAcceptedFilesExist(t *testing.T) {
|
||||
t.Parallel()
|
||||
for name := range submoduleAcceptedFileNames().Keys() {
|
||||
if _, err := os.Stat(filepath.Join(referenceRoot, "submoduleAccepted", name)); err != nil {
|
||||
t.Errorf("submoduleAccepted.txt references %q, but the baseline file does not exist", name)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestSubmoduleTriagedFilesExist(t *testing.T) {
|
||||
t.Parallel()
|
||||
for name := range submoduleTriagedFileNames().Keys() {
|
||||
if _, err := os.Stat(filepath.Join(referenceRoot, "submoduleTriaged", name)); err != nil {
|
||||
t.Errorf("submoduleTriaged.txt references %q, but the baseline file does not exist", name)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user