Skip to content

Commit 062b444

Browse files
authored
Merge pull request #2203 from strictdoc-project/stanislaw/junit_xml
helpers/google_test: improve error message when hitting unexpected content
2 parents a21d04b + e305152 commit 062b444

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

strictdoc/helpers/google_test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ def convert_function_name_to_gtest_macro(input_str: str) -> List[str]:
2121
input_str = input_str_parts[1]
2222

2323
if "." not in input_str:
24-
raise ValueError("Input string must contain a dot.")
24+
raise ValueError(f"Input string must contain a dot: '{input_str}'.")
2525

2626
parts = input_str.split(".")
2727
if len(parts) != 2:
28-
raise ValueError("Input string must contain exactly one dot.")
28+
raise ValueError(
29+
f"Input string must contain exactly one dot: '{input_str}'."
30+
)
2931

3032
if is_pattern_function:
3133
return [

0 commit comments

Comments
 (0)