Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@kikofernandez
Copy link
Contributor

@kikofernandez kikofernandez commented Jan 12, 2023

This PR adds some type specifications to the inets module.

These have been checked by Dialyzer and eqWAlizer.

Note: Not all types have been added because that would require bigger changes in stdlib, but the ones that were possible have been added and are type checked by eqWalizer. The ones that are not possible usually refer to prop lists, because the return type in the spec is always term(), which makes eqWAlizer to think that term() is the input type to another function. When this other function expects (e.g.,) integer(), it reports a mismatch between term() and integer().

@kikofernandez kikofernandez added team:PS Assigned to OTP team PS feature testing currently being tested, tag is used by OTP internal CI documentation labels Jan 12, 2023
@kikofernandez kikofernandez self-assigned this Jan 12, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jan 12, 2023

CT Test Results

    2 files    21 suites   12m 18s ⏱️
334 tests 312 ✔️ 21 💤 1
558 runs  521 ✔️ 37 💤 0

For more details on these failures, see this check.

Results for commit 8cf960c.

♻️ This comment has been updated with latest results.

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

// Erlang/OTP Github Action Bot

@kikofernandez kikofernandez removed the testing currently being tested, tag is used by OTP internal CI label Jan 17, 2023
@kikofernandez
Copy link
Contributor Author

This has been stalled a bit, but I plan on fixing all related issues this week :)
Thanks for the feedback

@kikofernandez kikofernandez force-pushed the kiko/inets/add-types/OTP-18390 branch 2 times, most recently from 346730f to 8ae46eb Compare February 6, 2023 13:45
@kikofernandez kikofernandez force-pushed the kiko/inets/add-types/OTP-18390 branch from 8ae46eb to c38f8bc Compare February 15, 2023 13:42
Updates records, function headers, etc so that the `inets` app can be type
checked by type checkers such as eqWAlizer.
@kikofernandez kikofernandez force-pushed the kiko/inets/add-types/OTP-18390 branch from 0c5dcc0 to 8cf960c Compare February 17, 2023 10:47
@kikofernandez kikofernandez added the testing currently being tested, tag is used by OTP internal CI label Feb 17, 2023
@IngelaAndin IngelaAndin added this to the OTP-25.3 milestone Feb 20, 2023
@kikofernandez kikofernandez merged commit 3d372f9 into erlang:maint Feb 20, 2023
@kikofernandez kikofernandez deleted the kiko/inets/add-types/OTP-18390 branch February 20, 2023 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation feature team:PS Assigned to OTP team PS testing currently being tested, tag is used by OTP internal CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants