MCPcopy Create free account
hub / github.com/vale-cli/vale / TestLibrary

Function TestLibrary

cmd/vale/pkg_test.go:47–65  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestLibrary(t *testing.T) {
48 path, err := mockPath()
49 if err != nil {
50 t.Fatal(err)
51 }
52
53 err = readPkg("write-good", path, 0)
54 if err != nil {
55 t.Fatal(err)
56 }
57
58 if !system.IsDir(filepath.Join(path, "write-good")) {
59 t.Fatal("unable to find 'write-good' in StylesPath")
60 }
61
62 if !system.FileExists(filepath.Join(path, "write-good", "E-Prime.yml")) {
63 t.Fatal("unable to find 'E-Prime' in StylesPath")
64 }
65}
66
67func TestLocalZip(t *testing.T) {
68 path, err := mockPath()

Callers

nothing calls this directly

Calls 4

IsDirFunction · 0.92
FileExistsFunction · 0.92
mockPathFunction · 0.85
readPkgFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…