push
travis-ci
2427 of 2686 relevant lines covered (90.36%)
312.64 hits per line
1 |
# Represents a set of Notices which can be automatically
|
|
2 |
# determined to refer to the same Error (Errbit groups
|
|
3 |
# notices into errs by a notice's fingerprint.)
|
|
4 |
|
|
5 |
class Err |
3 all except rbx-2, COVERAGE=true ✔ |
6 |
include Mongoid::Document |
3 all except rbx-2, COVERAGE=true ✔ |
7 |
include Mongoid::Timestamps |
3 all except rbx-2, COVERAGE=true ✔ |
8 |
|
|
9 |
field :fingerprint
|
3 all except rbx-2, COVERAGE=true ✔ |
10 |
|
|
11 |
index problem_id: 1 |
3 all except rbx-2, COVERAGE=true ✔ |
12 |
index fingerprint: 1 |
3 all except rbx-2, COVERAGE=true ✔ |
13 |
|
|
14 |
belongs_to :problem
|
3 all except rbx-2, COVERAGE=true ✔ |
15 |
has_many :notices, :inverse_of => :err, :dependent => :destroy |
3 all except rbx-2, COVERAGE=true ✔ |
16 |
|
|
17 |
validates_presence_of :problem_id, :fingerprint |
3 all except rbx-2, COVERAGE=true ✔ |
18 |
|
2 only rbx-2, COVERAGE=true ✔ |
19 |
delegate :app, :resolved?, :to => :problem |
5✔ |
20 |
|
× |
21 |
end
|