예제 #1
0
 def instruction_parser_from_parts_parser(self, parts_parser: InstructionPartsParser
                                          ) -> InstructionParser:
     return sut.Parser(parts_parser)
예제 #2
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))
예제 #3
0
파일: env.py 프로젝트: emilkarlen/exactly
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(parse.parts_parser(phase_is_after_act=True)),
        doc.TheInstructionDocumentation(instruction_name))
예제 #4
0
파일: copy.py 프로젝트: emilkarlen/exactly
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(copy.parts_parser(True)),
        copy.TheInstructionDocumentation(instruction_name, True))
예제 #5
0
파일: run.py 프로젝트: emilkarlen/exactly
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))
예제 #6
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(new_dir_utils.PARTS_PARSER),
        new_dir_utils.TheInstructionDocumentation(instruction_name))
예제 #7
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(new_file.parts_parser(True)),
        new_file.TheInstructionDocumentation(instruction_name))
예제 #8
0
파일: shell.py 프로젝트: emilkarlen/exactly
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.BEFORE_ASSERT.section_name))