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

Remove Assert Package 3/3 #1205

Merged
merged 12 commits into from
Sep 19, 2023
Merged

Remove Assert Package 3/3 #1205

merged 12 commits into from
Sep 19, 2023

Conversation

AdamHaffar
Copy link
Contributor

@AdamHaffar AdamHaffar commented Sep 11, 2023

Description

Refactor all _test.go that used pkg/foundation/assert to use (https://github.com/matryer/is) in the following packages:

PR (1/3)

  • ./pipeline
  • ./record
  • ./conduit
  • ./web

PR (2/3)

  • ./processor
  • ./orchestrator

PR (3/3)

  • ./foundation

Partially Fixes #260

Quick checks:

  • I have followed the Code Guidelines.
  • There is no other pull request for the same update/change.
  • I have written unit tests. Can you even write tests for tests :o
  • I have made sure that the PR is of reasonable size and can be easily reviewed.

@AdamHaffar AdamHaffar requested a review from a team as a code owner September 11, 2023 23:55
Remove Assert pkg from ./foundation.
Refactor is.New(t) to be initialised in each subtest
@AdamHaffar AdamHaffar changed the title Remove Assert Package 2/3 Remove Assert Package 3/3 Sep 15, 2023
Copy link
Contributor

@maha-hajja maha-hajja left a comment

Choose a reason for hiding this comment

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

since this is the last PR to remove the assert package, let's add the package name to the depguard linter for golangci-lint, to make sure no other file will have it in the future

depguard:

@lovromazgon
Copy link
Member

Why don't we just remove the package itself? Then there's nothing to import, nothing to guard against 🙂

@maha-hajja
Copy link
Contributor

@lovromazgon lol totally forgot that we're the ones who created it, let's do what he said 🤣

@hariso hariso enabled auto-merge (squash) September 19, 2023 12:56
@hariso hariso merged commit 8e1cdf7 into main Sep 19, 2023
3 checks passed
@hariso hariso deleted the adam/assert-packages branch September 19, 2023 13:40
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.

Remove assert package
4 participants