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

Add e2e test for log package #1235

Open
harshitghagre opened this issue Feb 11, 2025 · 1 comment
Open

Add e2e test for log package #1235

harshitghagre opened this issue Feb 11, 2025 · 1 comment
Assignees

Comments

@harshitghagre
Copy link

  • Introduced logs_test.go to systematically validate core functions in logs.go.

  • Used httptest.NewServer to mock API responses for GetJson and SetLoggerLevel.

  • Captured os.Stdout to verify expected CLI outputs.

  • Tested key scenarios:

    • Retrieving all logger names.
    • Getting a specific logger's level.
    • Setting a logger's level.
  • Handling invalid inputs.

@harshitghagre
Copy link
Author

/assign

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 a pull request may close this issue.

1 participant