@hyperjump/json-schema-coverage
    Preparing search index...

    Class CoverageMapService

    The CoverageMapService creates istanbul coverage maps for your schemas and stores them for use by the TestCoverageEvaluationPlugin. A coverage map stores the file positions of all the keywords, schemas, and branches in a schema.

    Index

    Constructors

    Methods

    • If you have a coverage map you created yourself or got from some other source, you can add it using this method. You probably don't need this. Use addFromFile to create and store the coverage map for you.

      Parameters

      • coverageMap: CoverageMapData

      Returns void

    • This method takes a file path to a schema, generates a coverage map for it, and stores it for later use. It returns the identifier for the schema (usually the value of $id).

      Parameters

      • schemaPath: string

      Returns Promise<string>

    • Retrieve a coverage map that was previously added through addFromFile or addCoverageMap.

      Parameters

      • schemaUri: string

      Returns CoverageMapData

    • Get the file path for the schema that is identified by the given URI.

      Parameters

      • schemaUri: string

      Returns string