Skip to content

Conversation

@herwinw
Copy link
Member

@herwinw herwinw commented May 31, 2025

It looks like there was a lot of copy-paste in this one, often the description did not match the actual test.
The descriptions have been updated to use the shortest human readable syntax, so no Socket:: namespace and no PF_ prefix to the name. This matches the afamily specs (or: most of them).

Additionally, a few additional spaces in the descriptions have been removed.

It looks like there was a lot of copy-paste in this one, often the description did not match the actual test. The descriptions have been updated to use the shortest human readable syntax, so no `Socket::` namespace and no `PF_` prefix to the name. This matches the afamily specs (or: most of them). Additionally, a few additional spaces in the descriptions have been removed.
end

it "returns the Socket::UNSPEC pfamily" do
it "returns the INET6 pfamily" do
Copy link
Member

Choose a reason for hiding this comment

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

Looks good, but in most cases a test checks that a getter returns a value passed into a constructor and nothing more. So a test title may be more generic, e.g. returns pfamily. And it seems it doesn't matter what a specific value is used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants