• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

idaholab / MontePy / 13886024455

16 Mar 2025 06:06PM UTC coverage: 98.106% (+0.3%) from 97.83%
13886024455

Pull #698

github

web-flow
Merge 24fe69472 into 895002fc1
Pull Request #698: Fixing syntax error with updating is_reflecting

3 of 3 new or added lines in 2 files covered. (100.0%)

130 existing lines in 31 files now uncovered.

7718 of 7867 relevant lines covered (98.11%)

0.98 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

94.44
/montepy/input_parser/read_parser.py
1
# Copyright 2024, Battelle Energy Alliance, LLC All Rights Reserved.
2
from montepy.input_parser.parser_base import MCNP_Parser
1✔
3
from montepy.input_parser import syntax_node
1✔
4

5

6
class ReadParser(MCNP_Parser):
1✔
7
    """A parser for handling "read" inputs."""
8

9
    debugfile = None
1✔
10
    dont_copy = {"parameter"}
1✔
11

12
    @_("KEYWORD padding parameters", "padding KEYWORD padding parameters")
1✔
13
    def read_input(self, p):
1✔
14
        if isinstance(p[0], syntax_node.PaddingNode):
1✔
15
            start_pad = p[0]
1✔
16
            mid_pad = p[2]
1✔
17
        else:
18
            start_pad = syntax_node.PaddingNode()
1✔
19
            mid_pad = p[1]
1✔
20
        if p.KEYWORD.lower() == "read":
1✔
21
            return syntax_node.SyntaxNode(
1✔
22
                "read",
23
                {
24
                    "start_pad": start_pad,
25
                    "keyword": p.KEYWORD,
26
                    "padding": mid_pad,
27
                    "parameters": p.parameters,
28
                },
29
            )
30
        else:
UNCOV
31
            return False
×
32

33
    @_(
1✔
34
        "classifier param_seperator file_phrase",
35
    )
36
    def parameter(self, p):
1✔
37
        return syntax_node.SyntaxNode(
1✔
38
            p.classifier.prefix.value,
39
            {"classifier": p.classifier, "seperator": p.param_seperator, "data": p[2]},
40
        )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc