pmd-lang-test / net.sourceforge.pmd.lang.ast.test / BaseTreeDumpTest

BaseTreeDumpTest

abstract class BaseTreeDumpTest : BaseTextComparisonTest

Compare a dump of an AST against a saved baseline.

Parameters

printer - The node printer used to dump the trees

extensionIncludingDot - Extension that the unparsed source file is supposed to have

Constructors

<init>

Compare a dump of an AST against a saved baseline.

BaseTreeDumpTest(printer: TreeRenderer, extensionIncludingDot: String)

Properties

extensionIncludingDot

Extension that the unparsed source file is supposed to have

open val extensionIncludingDot: String

parser

abstract val parser: BaseParsingHelper<*, *>

resourceLoader

open val resourceLoader: Class<*>

resourcePrefix

Resource prefix to look for test files. This is resolved from the resourceLoader class. Separate directories with '/', not '.'.

open val resourcePrefix: String

Functions

doTest

fun doTest(fileBaseName: String): Unit