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

Enhance defaultHWAddrFunc() and tests to hit 100% coverage #57

Merged
merged 3 commits into from Sep 9, 2022

Commits on Jan 11, 2019

  1. Enhance defaultHWAddrFunc() and tests to hit 100% coverage

    This updates `defaultHWAddrFunc` to use a package-level variable for calling
    `net.Interfaces()`, so that we can mock it in unit tests.
    
    Doing so, and writing the related test, allows us to hit 100% coverage.
    
    Signed-off-by: Tim Heckman <t@heckman.io>
    theckman committed Jan 11, 2019
    Copy the full SHA
    8b46831 View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2022

  1. Copy the full SHA
    96f118c View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2022

  1. Copy the full SHA
    20095e6 View commit details
    Browse the repository at this point in the history