Exemplo n.º 1
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(new_file.parts_parser(True)),
        new_file.TheInstructionDocumentation(instruction_name))
Exemplo n.º 2
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(shell_common.parts_parser(instruction_name)),
        shell_common.DescriptionForNonAssertPhaseInstruction(instruction_name,
                                                             phase_identifier.CLEANUP.section_name))
Exemplo n.º 3
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(run.parts_parser(instruction_name)),
        run.TheInstructionDocumentation(instruction_name,
                                        run.NON_ASSERT_PHASE_SINGLE_LINE_DESCRIPTION,
                                        outcome=run.NON_ASSERT_PHASE_OUTCOME))
Exemplo n.º 4
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(cd_utils.parts_parser(is_after_act_phase=True)),
        cd_utils.TheInstructionDocumentation(instruction_name,
                                             is_after_act_phase=True,
                                             is_in_assert_phase=False))
Exemplo n.º 5
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(copy.parts_parser(True)),
        copy.TheInstructionDocumentation(instruction_name, True))
 def instruction_from_parts_parser(self, parts_parser: InstructionPartsParser) -> InstructionParser:
     return instruction_from_parts.Parser(parts_parser)
Exemplo n.º 7
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(new_dir_utils.PARTS_PARSER),
        new_dir_utils.TheInstructionDocumentation(instruction_name))
Exemplo n.º 8
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(parse.PARTS_PARSER),
        doc.TheInstructionDocumentation(instruction_name))
Exemplo n.º 9
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(parse.parts_parser(phase_is_after_act=True)),
        doc.TheInstructionDocumentation(instruction_name))