Skip to content

Conversation

@jonasfj
Copy link
Member

@jonasfj jonasfj commented Nov 7, 2024

No description provided.

@jonasfj jonasfj requested review from isoos and szakarias November 7, 2024 12:45

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.


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