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

cristim / autospotting / 274
65%
master: 83%

Build:
Build:
LAST BUILD BRANCH: feat/clean-attempt-multiple-instance-types
DEFAULT BRANCH: master
Ran 28 Feb 2017 01:58PM UTC
Jobs 1
Files 9
Run time 0s
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

pending completion
274

push

travis-ci

xlr-8
autoscaling: add extra tests to methods

The following methods should now also be covered by tests:
 * TestPropagatedInstance
 * TestGetOnDemandInstanceInAZ
 * TestGetAnyOnDemandInstance
 * TestGetAnySpotInstance
 * TestReplaceOnDemandInstanceWithSpot

Some methods have been modified to be easier to test (return objects,
return errors, etc). One has been renamed to be more logical with the
other similar methods:

 -func (a *autoScalingGroup) findOndemandInstanceInAZ(az *string) *instance {
 +func (a *autoScalingGroup) getOnDemandInstanceInAZ(az *string) *instance {

While some have been simplified, by merging and/or removing some
pieces of unecessary code, that's the case for:
 * (merged) propagatedInstanceTags & filterTags
 * (removed) getAnyInstances (unused),
 * (modified) replaceOnDemandInstanceWithSpot to return errors

Their respective behavior should not have been modified though.

871 of 1336 relevant lines covered (65.19%)

4.79 hits per line

Jobs
ID Job ID Ran Files Coverage
1 274.1 28 Feb 2017 01:58PM UTC 0
65.19
Travis Job 274.1
Source Files on build 274
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #274
  • 64f64727 on github
  • Prev Build on test-autoscaling (#273)
  • Next Build on test-autoscaling (#276)
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

© 2025 Coveralls, Inc