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

ruby-rdf / rdf / 965
92%

Build:
DEFAULT BRANCH: develop
Ran 15 Aug 2016 03:41PM UTC
Jobs 2
Files 60
Run time 59s
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
965

Pull #310

travis-ci

web-flow
Implement `Transaction#mutated?`

`#mutated?` must return `true` when the transaction would change the
repository if executed against it's state at transaction start time.
We allow implementations to return `true` in other cases, as well; there
is no guarantee that a `false` result will be returned in any specific
circumstances (or ever).

For the base transaction, we simply check whether `@changes` is
empty. This can give false positives, but avoids a worst-case linear
check.

For subclasses with no custom implementation, we raise a
`NotImplementedError`.

For the `SerializableTransaction` included in the default
`RepositoryImplementation`, we use `#equal?` on the `Hamster::Hash`
instances. This will always give a correct response for the actual
implementation, moreover, it is guaranteed not to give false negatives
even if a user messes with the snapshot using `#send`.
Pull Request #310: Implement `Transaction#mutated?`

5 of 5 new or added lines in 2 files covered. (100.0%)

4142 of 4552 relevant lines covered (90.99%)

12829.21 hits per line

Jobs
ID Job ID Ran Files Coverage
1 965.1 (2.2.5, CI=true) 15 Aug 2016 03:41PM UTC 0
90.99
Travis Job 965.1
2 965.2 (2.3.1, CI=true) 15 Aug 2016 03:42PM UTC 0
90.97
Travis Job 965.2
Source Files on build 965
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #965
  • Pull Request #310
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