Skip to content

feat(generator/dart): generate google.protobuf.Timestamp with custom encoding and decoding#1627

Merged
devoncarew merged 5 commits intogoogleapis:mainfrom
devoncarew:generate_timestamp
Mar 28, 2025
Merged

feat(generator/dart): generate google.protobuf.Timestamp with custom encoding and decoding#1627
devoncarew merged 5 commits intogoogleapis:mainfrom
devoncarew:generate_timestamp

Conversation

@devoncarew
Copy link
Copy Markdown
Contributor

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.72%. Comparing base (4dad35d) to head (b090dd3).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1627   +/-   ##
=======================================
  Coverage   95.72%   95.72%           
=======================================
  Files          43       43           
  Lines        1825     1825           
=======================================
  Hits         1747     1747           
  Misses         78       78           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@coryan coryan left a comment

Choose a reason for hiding this comment

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

Maybe one more test case for you to consider. Which I do realize is missing from the Rust code too.

});
}

roundTrip('0001-01-01T00:00:00Z');
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It would be nice to have some time with negative seconds and non-zero nanos.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

and it turns out Rust had some bugs, see #1634

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks - I added the tests from the updated Rust impl and addressed an issue w/ negative seconds and non-zero nanos.

@devoncarew devoncarew merged commit afbc2bb into googleapis:main Mar 28, 2025
20 checks passed
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.

create a WKT for google.protobuf.Timestamp

2 participants