Created
November 9, 2014 16:03
-
-
Save godfat/eed891146daec6d6c88c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00:02 ~/p/g/muack *master> mutant -Ilib -rmuack --use pork Muack | |
Mutant configuration: | |
Matcher: #<Mutant::Matcher::Config match_expressions=[<Mutant::Expression: Muack>] subject_ignores=[] subject_selects=[]> | |
Integration: pork | |
Expect Coverage: 100.00% | |
Jobs: 8 | |
Includes: ["lib"] | |
Requires: ["muack"] | |
F.................................................F.......F...................Muack.reset:/Users/godfat/project/godfat/muack/lib/muack.rb:16 | |
- pork:Muack | |
neutral:Muack.reset:/Users/godfat/project/godfat/muack/lib/muack.rb:16:00feb | |
--- Neutral failure --- | |
Original code was inserted unmutated. And the test did NOT PASS. | |
Your tests do not pass initially or you found a bug in mutant / unparser. | |
Subject AST: | |
(defs | |
(self) :reset | |
(args | |
(optarg :obj | |
(nil))) | |
(begin | |
(lvasgn :session | |
(send | |
(send | |
(const nil :Thread) :current) :[] | |
(sym :muack_session))) | |
(and | |
(lvar :session) | |
(send | |
(lvar :session) :reset | |
(lvar :obj))) | |
(if | |
(lvar :obj) nil | |
(send | |
(send | |
(const nil :Thread) :current) :[]= | |
(sym :muack_session) | |
(nil))))) | |
Unparsed Source: | |
def self.reset(obj = nil) | |
session = Thread.current[:muack_session] | |
session && session.reset(obj) | |
unless obj | |
Thread.current[:muack_session] = nil | |
end | |
end | |
Test Reports: 1 | |
- pork:Muack / runtime: 0.000141 | |
Test Output: | |
----------------------- | |
Muack.session:/Users/godfat/project/godfat/muack/lib/muack.rb:12 | |
- pork:Muack | |
neutral:Muack.session:/Users/godfat/project/godfat/muack/lib/muack.rb:12:c7b3f | |
--- Neutral failure --- | |
Original code was inserted unmutated. And the test did NOT PASS. | |
Your tests do not pass initially or you found a bug in mutant / unparser. | |
Subject AST: | |
(defs | |
(self) :session | |
(args) | |
(or-asgn | |
(send | |
(send | |
(const nil :Thread) :current) :[] | |
(sym :muack_session)) | |
(send | |
(const | |
(const nil :Muack) :Session) :new))) | |
Unparsed Source: | |
def self.session | |
Thread.current[:muack_session] ||= Muack::Session.new | |
end | |
Test Reports: 1 | |
- pork:Muack / runtime: 0.000228 | |
Test Output: | |
----------------------- | |
Muack.verify:/Users/godfat/project/godfat/muack/lib/muack.rb:6 | |
- pork:Muack | |
neutral:Muack.verify:/Users/godfat/project/godfat/muack/lib/muack.rb:6:65b6e | |
--- Neutral failure --- | |
Original code was inserted unmutated. And the test did NOT PASS. | |
Your tests do not pass initially or you found a bug in mutant / unparser. | |
Subject AST: | |
(defs | |
(self) :verify | |
(args | |
(optarg :obj | |
(nil))) | |
(ensure | |
(send | |
(send nil :session) :verify | |
(lvar :obj)) | |
(send nil :reset | |
(lvar :obj)))) | |
Unparsed Source: | |
def self.verify(obj = nil) | |
session.verify(obj) | |
ensure | |
reset(obj) | |
end | |
Test Reports: 1 | |
- pork:Muack / runtime: 0.00029 | |
Test Output: | |
----------------------- | |
Mutant configuration: | |
Matcher: #<Mutant::Matcher::Config match_expressions=[<Mutant::Expression: Muack>] subject_ignores=[] subject_selects=[]> | |
Integration: pork | |
Expect Coverage: 100.00% | |
Jobs: 8 | |
Includes: ["lib"] | |
Requires: ["muack"] | |
Available Subjects: 3 | |
Subjects: 3 | |
Mutations: 78 | |
Kills: 75 | |
Alive: 3 | |
Runtime: 1.29s | |
Killtime: 0.02s | |
Overhead: 8215.76% | |
Coverage: 96.15% | |
Expected: 100.00% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment