[Github-comments] [geany/geany] Add human-readable representation of tags to unit test results (PR #3051)

Jiří Techet notifications at github.com
Sun May 22 21:02:45 UTC 2022


@techee commented on this pull request.



> +
+
+inp = sys.stdin.buffer.read()
+
+tag = {}
+pos = 0
+line_start_pos = 0
+line_start = True
+first_line = True
+while pos < len(inp):
+	part, kind, pos = get_next_part(inp, pos, line_start)
+	value = decode_kind(kind, part)
+	tag[kind] = value
+	line_start = False
+	if inp[pos] == ord('\n'):
+		if not first_line:

Can do, but I would just leave it to the first line. One never knows what characters an identifier may contain in various languages and it's possible that `#` could be a legal identifier character.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3051#discussion_r878925417
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany/pull/3051/review/981016844 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220522/e4e50ef8/attachment.htm>


More information about the Github-comments mailing list