• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

l50 / awsutils / 7705967981
70%

Build:
DEFAULT BRANCH: main
Ran 30 Jan 2024 03:52AM UTC
Jobs 1
Files 6
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jan 2024 03:40AM UTC coverage: 67.049% (+5.4%) from 61.614%
7705967981

push

github

l50
Refactored AWS EC2 utility functions for improved subnet classification.

**Added:**
- New function `handleSubnetClassificationError` to streamline error handling during subnet classification, ensuring a cleaner separation of concerns and reducing cyclomatic complexity.
- Introduced `classifySubnets` function to encapsulate the logic for categorizing subnets based on their public/private status, enhancing code readability and maintainability.

**Changed:**
- Modified `ListVPCSubnets` function to use the newly added `classifySubnets` and `handleSubnetClassificationError` functions, thereby reducing its cyclomatic complexity and improving code clarity.
- Enhanced error handling in subnet classification logic by verifying if a subnet is truly private through the `isSubnetReallyPrivate` function when a subnet lacks a route table, ensuring more accurate subnet classification.
- Updated function comments and documentation to reflect the new structure and logic, providing clear guidance for future maintenance and understanding of the codebase.

**Removed:**
- Extraneous and complex inline error handling in `ListVPCSubnets`, now efficiently handled by `handleSubnetClassificationError`.

702 of 1047 relevant lines covered (67.05%)

5.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7705967981.1 30 Jan 2024 03:52AM UTC 0
67.05
GitHub Action Run
Source Files on build 7705967981
Detailed source file information is not available for this build.
  • Back to Repo
  • 00460e16 on github
  • Prev Build on main (#7705491301)
  • Next Build on main (#7738788459)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc