File: parserimpl.py

package info (click to toggle)
junit2html 31.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 576 kB
  • sloc: xml: 3,208; python: 1,023; makefile: 6; sh: 5
file content (18 lines) | stat: -rw-r--r-- 298 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
Parse results files
"""
from .parser import Junit


def load_report(filename: str) -> Junit:
    """
    Load a report from disjk
    """
    return Junit(filename=filename)


def load_string(text: str) -> Junit:
    """
    Load a report from a string
    """
    return Junit(xmlstring=text)