Skip to content

Parsing#45641

Draft
tyxia wants to merge 7 commits into
envoyproxy:mainfrom
tyxia:wuffs_parser
Draft

Parsing#45641
tyxia wants to merge 7 commits into
envoyproxy:mainfrom
tyxia:wuffs_parser

Conversation

@tyxia

@tyxia tyxia commented Jun 15, 2026

Copy link
Copy Markdown
Member

WuffsJsonCursor + Handler interface + tests.
The cursor is a self-contained library: it tokenizes JSON and fires callbacks.

@repokitteh-read-only

Copy link
Copy Markdown

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #45641 was opened by tyxia.

see: more, trace.

Signed-off-by: tyxia <tyxia@google.com>
tyxia added 2 commits June 15, 2026 12:39
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
@tyxia

tyxia commented Jun 15, 2026

Copy link
Copy Markdown
Member Author

/coverage

@repokitteh-read-only

Copy link
Copy Markdown

Coverage for this Pull Request will be rendered here:

https://storage.googleapis.com/envoy-cncf-pr/45641/coverage/index.html

For comparison, current coverage on main branch is here:

https://storage.googleapis.com/envoy-cncf-postsubmit/main/coverage/index.html

The coverage results are (re-)rendered each time the CI Envoy/Checks (coverage) job completes.

🐱

Caused by: a #45641 (comment) was created by @tyxia.

see: more, trace.

tyxia added 4 commits June 15, 2026 15:25
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <tyxia@google.com>
Signed-off-by: tyxia <kobesummerrain@gmail.com>

Signed-off-by: tyxia <tyxia@google.com>
Cover six previously-uncovered lines in wuffs_json_cursor.cc:
- wuffs_done_ early-return (feed after document completes)
- string_chunk_active_=false when onStringChunk returns false on COPY token
- string_chunk_active_=false when onStringChunk returns false on UNICODE_CODE_POINT token
- onBoolean handler abort propagation
- onKey handler abort propagation
- token ring-buffer reset on short_write (50 pairs → ~301 tokens > kTokenBufLen=256)

Also adds nextSourcePosition() exercise.

Signed-off-by: tyxia <tyxia@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant