Skip to content

[Doc] Explain flowR subgraph and slicing criteria convenience toggles in tests #1105

@EagleoutIce

Description

@EagleoutIce

This eases the way we write dataflow tests and so others writing tests should know!
This is linked to #1104.

The following test showcases the potential, we no longer have to specify the complete graph!

const distractor = 'x <- 3\ny <- 4\nz <- 2\n';
assertDataflow(label('without distractors', [...OperatorDatabase['<-'].capabilities, 'numbers', 'name-normal', 'newlines', 'name-escaped']),
shell, '`a` <- 2\na',
emptyGraph()
.use('2@a')
.reads('2@a', '1@`a`'),
{
expectIsSubgraph: true,
resolveIdsAsCriterion: true
}
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions