Пример #1
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))
Пример #2
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(
            cd_utils.parts_parser(is_after_act_phase=False)),
        cd_utils.TheInstructionDocumentation(instruction_name,
                                             is_after_act_phase=False,
                                             is_in_assert_phase=False))
Пример #3
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(parse.PARTS_PARSER),
        doc.TheInstructionDocumentation(instruction_name))
Пример #4
0
 def instruction_parser_from_parts_parser(
         self, parts_parser: InstructionPartsParser) -> InstructionParser:
     return sut.Parser(parts_parser)
Пример #5
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.SETUP.section_name))
Пример #6
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(parse.parts_parser(phase_is_after_act=False)),
        doc.TheInstructionDocumentation(instruction_name,
                                        is_in_setup_phase=True))
Пример #7
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(copy.parts_parser(False)),
        copy.TheInstructionDocumentation(instruction_name, False))
Пример #8
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(new_file.parts_parser(False)),
        new_file.TheInstructionDocumentation(instruction_name),
    )
Пример #9
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(new_dir_utils.PARTS_PARSER),
        new_dir_utils.TheInstructionDocumentation(instruction_name))