Skip to content

Add test coverage for protobuf conversion edge cases#2496

Merged
rfontanarosa merged 4 commits into
masterfrom
rfontanarosa/1808/code-health-handle-protobuf-conversion-edge-cases
Apr 22, 2026
Merged

Add test coverage for protobuf conversion edge cases#2496
rfontanarosa merged 4 commits into
masterfrom
rfontanarosa/1808/code-health-handle-protobuf-conversion-edge-cases

Conversation

@rfontanarosa
Copy link
Copy Markdown
Collaborator

@rfontanarosa rfontanarosa commented Apr 17, 2026

closes #1808

  • Add tests for error returns and value-skip branches in firestore-to-proto.ts and proto-to-firestore.ts
  • Covers: non-numeric keys, unrecognized field numbers, non-numeric enum values, google.protobuf.Timestamp conversion, repeated-with-non-array, Error-returning constructors, unknown message types,
    empty-string drop, unsupported value types, array input
  • No production code changes — test-only

@rfontanarosa rfontanarosa self-assigned this Apr 17, 2026
@rfontanarosa rfontanarosa requested a review from gino-m April 17, 2026 11:19
gino-m
gino-m previously approved these changes Apr 17, 2026
Copy link
Copy Markdown
Collaborator

@gino-m gino-m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Comment thread lib/src/firestore-to-proto.spec.ts
Comment thread lib/src/firestore-to-proto.spec.ts
…n-edge-cases' of https://github.com/google/ground-platform into rfontanarosa/1808/code-health-handle-protobuf-conversion-edge-cases
@rfontanarosa rfontanarosa merged commit 93d6eec into master Apr 22, 2026
9 checks passed
@rfontanarosa rfontanarosa deleted the rfontanarosa/1808/code-health-handle-protobuf-conversion-edge-cases branch April 22, 2026 08:43
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.

[Code health] Handle protobuf conversion edge cases

2 participants