Search results

Types

Classes
Interfaces
Enums
Functions
Type aliases
Constants

Members

Properties
Methods
Getters
Setters
Enum members
Show privates

Other

In this module only

Class TestCollector

Defined in index.ts

Constructor

constructor()

Properties

classSuites: Mapexternal Map<ClassDeclinterface ClassDeclextractor/extractor/ClassDecl, {
project: Projectclass Projectextractor/extractor/Project,
module: Moduleinterface Moduleextractor/extractor/Module,
tests: Arrayexternal Array<{functionName?: string, testCode: string}>
}
>
[src]
fnSuites: Mapexternal Map<Moduleinterface Moduleextractor/extractor/Module, {
project: Projectclass Projectextractor/extractor/Project,
tests: Mapexternal Map<FunctionDeclinterface FunctionDeclextractor/extractor/FunctionDecl, Arrayexternal Array<string>>
}
>
[src]

Methods

addTest(
generator: Generatorclass Generatorts-docs/generator/Generator,
content: string,
fnName?: string
): string
[src]
filterSource(
code: string
): [filtered: string, full: string]
[src]

If a line inside the codeblock starts with #, then that line is going to be omitted from the final output, but it will be included in the test code. You can prevent this from happening by adding another # right after the first one.

runClassSuites(generator: Generatorclass Generatorts-docs/generator/Generator): void[src]
runFnSuites(generator: Generatorclass Generatorts-docs/generator/Generator): void[src]