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

save and restore state #320

Merged
merged 2 commits into from Jun 6, 2022
Merged

save and restore state #320

merged 2 commits into from Jun 6, 2022

Commits on May 9, 2022

  1. save and restore state

    This is useful in several unit tests. At least one test in klog_test.go itself
    left klog in a different state after it ran.
    pohly committed May 9, 2022
    Copy the full SHA
    296f5e6 View commit details
    Browse the repository at this point in the history
  2. refactor global state

    Global state consists of user-controlled settings and some additional runtime
    variables (mutex, cache). Storing all settings, and just those, in a single
    struct with a deepCopy function makes state capturing simpler.
    pohly committed May 9, 2022
    Copy the full SHA
    3c90bf9 View commit details
    Browse the repository at this point in the history