parsetools (version 0.1.1)

extract_test_block: Extract testing blocks from the parse-data.

Description

Extract the content of a testing block as a character vector of lines. The name, which is attached as an attribute is taken from the info string or inferred by location, see Details.

Usage

extract_test_block(id = all_tagged_iff_block_ids(pd, .testing.tags),
  pd = get("pd", parent.frame()))

Arguments

id

iff block id, not the content

pd

a parse-data object.

Value

a character vector with the lines for the specific test(s) with the name of the test included as an attribute.