Description:
The aws_service.go file contains critical logic for fetching and storing AWS costs. Write unit tests that mock the AWS SDK calls to ensure this logic is correct and robust.
Acceptance Criteria:
- Mock the AWS Cost Explorer client.
- Test the FetchAndStoreCosts function with various mock responses (success, empty data, errors).
- Ensure tests run successfully with go test ./....
Description:
The aws_service.go file contains critical logic for fetching and storing AWS costs. Write unit tests that mock the AWS SDK calls to ensure this logic is correct and robust.
Acceptance Criteria: