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

ruby-rdf / rdf / 941
92%

Build:
DEFAULT BRANCH: develop
Ran 12 Aug 2016 10:14PM UTC
Jobs 2
Files 60
Run time 1min
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
941

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%)

4141 of 4552 relevant lines covered (90.97%)

13144.96 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
lib/rdf/repository.rb
Jobs
ID Job ID Ran Files Coverage
1 941.1 (2.2.5, CI=true) 12 Aug 2016 10:14PM UTC 0
90.97
Travis Job 941.1
2 941.2 (2.3.1, CI=true) 12 Aug 2016 10:15PM UTC 0
90.95
Travis Job 941.2
Source Files on build 941
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #941
  • Pull Request #310
  • PR Base - develop (#939)
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