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

Factor out (bolt)testing library. #360

Merged
merged 6 commits into from
Dec 28, 2022
Merged

Commits on Dec 28, 2022

  1. Factor out (bolt)testing library.

    Thanks to putting it outside the bbolt_test package it can be used to test other packages.
    The replacement of the bbolt_test variant inlined in db_test.go is to be performed in a follow up PR.
    
    Signed-off-by: Piotr Tabor <ptab@google.com>
    ptabor committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    46cdbf5 View commit details
    Browse the repository at this point in the history
  2. Example: How to use the separated 'btesting' library.

    Signed-off-by: Piotr Tabor <ptab@google.com>
    ptabor committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    f3e164d View commit details
    Browse the repository at this point in the history
  3. Tests: Migrate from test DB to btesting.DB

    Signed-off-by: Piotr Tabor <ptab@google.com>
    ptabor committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    26cc5e3 View commit details
    Browse the repository at this point in the history
  4. testing: group (reorder) imports.

    Signed-off-by: Piotr Tabor <ptab@google.com>
    ptabor committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    93380c5 View commit details
    Browse the repository at this point in the history
  5. Use require.NoError in btesting.go

    Signed-off-by: Piotr Tabor <ptab@google.com>
    ptabor committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    37d72cc View commit details
    Browse the repository at this point in the history
  6. cmd/main_test.go is using btesting as well.

    Signed-off-by: Piotr Tabor <ptab@google.com>
    ptabor committed Dec 28, 2022
    Configuration menu
    Copy the full SHA
    1f46d6c View commit details
    Browse the repository at this point in the history