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

allow to run unit-tests inside a container #561

Merged
merged 3 commits into from
Jun 2, 2024

Conversation

SchSeba
Copy link
Collaborator

@SchSeba SchSeba commented May 21, 2024

No description provided.

@coveralls
Copy link
Collaborator

coveralls commented May 21, 2024

Pull Request Test Coverage Report for Build 9338101632

Details

  • 11 of 14 (78.57%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 75.127%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/utils/testing.go 9 12 75.0%
Totals Coverage Status
Change from base Build 9336883479: 0.1%
Covered Lines: 2066
Relevant Lines: 2750

💛 - Coveralls

Copy link
Member

@zeeke zeeke left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@e0ne e0ne left a comment

Choose a reason for hiding this comment

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

LGTM

}
//nolint: gocritic
pciIdsPath := filepath.Join(dir, "../../pkg/utils/testdata/pci.ids")
pciData, err = os.ReadFile(pciIdsPath)
Copy link
Contributor

@adrianchiris adrianchiris Jun 2, 2024

Choose a reason for hiding this comment

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

i think for tests we can always use this file. less variation when running test. WDYT ?

Copy link
Contributor

@adrianchiris adrianchiris left a comment

Choose a reason for hiding this comment

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

minor comment, otherwise LGTM

@SchSeba SchSeba force-pushed the fix_unittest branch 2 times, most recently from 3fd63bb to 103ce99 Compare June 2, 2024 12:08
SchSeba added 3 commits June 2, 2024 15:08
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
@adrianchiris adrianchiris merged commit 3ffbe14 into k8snetworkplumbingwg:master Jun 2, 2024
10 of 11 checks passed
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.

5 participants