Skip to content

Refactor result handling in get_file_contents#134

Merged
panhania merged 1 commit intogoogle:masterfrom
panhania:feature/action-get_file_contents-item
Jul 30, 2025
Merged

Refactor result handling in get_file_contents#134
panhania merged 1 commit intogoogle:masterfrom
panhania:feature/action-get_file_contents-item

Conversation

@panhania
Copy link
Member

Originally I planned to extend FakeSession with methods that return Any version of replies that can be then inspected. But when I tried this approach it felt too dynamically typed to my taste. And the fact that we have two different result types that can be sent also feels off.

So here I swap to approach that maybe feels a bit awkward but is actually simpler and more explicit. It adds a bit of extra boilerplate to tests but nothing too terrible, I think.

@panhania panhania requested a review from s-westphal July 18, 2025 09:39
@panhania panhania merged commit 8f42605 into google:master Jul 30, 2025
9 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.

2 participants