mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-20 06:38:45 +05:00
- Pass the testing.T variable to all the helpers. - Fail directly using t.Fatal instead of returning errors and checking them in the parent function. - Use t.Cleanup to ensure engine is closed after the test instead of returning a shutdown function and using it with defer. - Use t.TempDir to create temporary directories for configuration and tariffplans - Add t.Helper() method call to all helper functions.
7.2 KiB
7.2 KiB