Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata to fake_gcloud #8243

Merged
merged 1 commit into from
Nov 7, 2024
Merged

Conversation

jonasfj
Copy link
Member

@jonasfj jonasfj commented Nov 7, 2024

No description provided.

@@ -93,7 +93,6 @@ void main() {

final sb = StringBuffer();
storage.writeTo(sb);
expect(sb.length, 118);
Copy link
Member Author

Choose a reason for hiding this comment

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

I think this test is dumb, we're checking that MemStorage can be serialized, we should assert what size it has.

Just that we get the same data out when we're deserialize it, which is tested further down.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Exact length check may be important if we are checking for a specific serialization format or making sure we are not doing excess or stupid things here. However, I do agree that this is not that important here.

@@ -93,7 +93,6 @@ void main() {

final sb = StringBuffer();
storage.writeTo(sb);
expect(sb.length, 118);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Exact length check may be important if we are checking for a specific serialization format or making sure we are not doing excess or stupid things here. However, I do agree that this is not that important here.

@jonasfj jonasfj merged commit 607ebbc into dart-lang:master Nov 7, 2024
32 checks passed
@jonasfj jonasfj deleted the fake_gcloud-metadata branch November 7, 2024 12:58
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.

3 participants