Interface ExpectedFoldings

interface ExpectedFoldings {
    assert?: ((foldings: FoldingRange[], expected: [number, number][]) => void);
    disposeAfterCheck?: boolean;
    indexMarker?: string;
    parseOptions?: ParseHelperOptions;
    rangeEndMarker?: string;
    rangeStartMarker?: string;
    text: string;
}

Hierarchy (view full)

Properties

assert?: ((foldings: FoldingRange[], expected: [number, number][]) => void)
disposeAfterCheck?: boolean

Whether to dispose the created documents right after performing the check.

Defaults to false.

indexMarker?: string

String to mark indices for test cases. <|> by default.

parseOptions?: ParseHelperOptions

Parse options used to parse the text property.

rangeEndMarker?: string

String to mark end indices for test cases. |> by default.

rangeStartMarker?: string

String to mark start indices for test cases. <| by default.

text: string

Document content. Use <|> and <|...|> to mark special items that are relevant to the test case.