MCPcopy Index your code
hub / github.com/NaturalIntelligence/fast-xml-parser / validateFile

Function validateFile

spec/validator_spec.js:39–42  ·  view source on GitHub ↗
(fileName, ...args)

Source from the content-addressed store, hash-verified

37}
38
39function validateFile(fileName, ...args) {
40 const fileNamePath = path.join(__dirname, "assets/" + fileName);
41 validate(fs.readFileSync(fileNamePath).toString(), ...args);
42}
43
44describe("XML Validator", function () {
45 it("should validate simple xml string", function () {

Callers 1

validator_spec.jsFile · 0.85

Calls 2

validateFunction · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…