Skip to content

Instantly share code, notes, and snippets.

@godfat
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godfat/31846c177c7ef3aa163e to your computer and use it in GitHub Desktop.
Save godfat/31846c177c7ef3aa163e to your computer and use it in GitHub Desktop.
04:17 ~/p/g/muack adopt-pork-1.0.0> 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.......................FFMuack.reset:/Users/godfat/project/godfat/muack/lib/muack.rb:16
- pork:Muack::IsAsatisfy
- pork:Muack::Anythingsatisfy
- pork:Muack::Matchsatisfy
- pork:Muack::HashIncludingsatisfy
- pork:Muack::Includingsatisfy
- pork:Muack::Withinsatisfy
- pork:Muack::RespondTosatisfy
- pork:Muack::Satisfysatisfy
- pork:Muack::Satisfy::Disjsatisfy
- pork:Muack::Satisfy::Conjsatisfy
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: 10
- pork:Muack::IsAsatisfy / runtime: 0.123771
Test Output:
marshal data too short
- pork:Muack::Anythingsatisfy / runtime: 0.129089
Test Output:
marshal data too short
- pork:Muack::Matchsatisfy / runtime: 0.128809
Test Output:
marshal data too short
- pork:Muack::HashIncludingsatisfy / runtime: 0.14632
Test Output:
marshal data too short
- pork:Muack::Includingsatisfy / runtime: 0.122499
Test Output:
marshal data too short
- pork:Muack::Withinsatisfy / runtime: 0.110054
Test Output:
marshal data too short
- pork:Muack::RespondTosatisfy / runtime: 0.109926
Test Output:
marshal data too short
- pork:Muack::Satisfysatisfy / runtime: 0.113102
Test Output:
marshal data too short
- pork:Muack::Satisfy::Disjsatisfy / runtime: 0.10864
Test Output:
marshal data too short
- pork:Muack::Satisfy::Conjsatisfy / runtime: 0.114515
Test Output:
marshal data too short
-----------------------
Muack.session:/Users/godfat/project/godfat/muack/lib/muack.rb:12
- pork:Muack::IsAsatisfy
- pork:Muack::Anythingsatisfy
- pork:Muack::Matchsatisfy
- pork:Muack::HashIncludingsatisfy
- pork:Muack::Includingsatisfy
- pork:Muack::Withinsatisfy
- pork:Muack::RespondTosatisfy
- pork:Muack::Satisfysatisfy
- pork:Muack::Satisfy::Disjsatisfy
- pork:Muack::Satisfy::Conjsatisfy
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: 10
- pork:Muack::IsAsatisfy / runtime: 0.119219
Test Output:
marshal data too short
- pork:Muack::Anythingsatisfy / runtime: 0.115875
Test Output:
marshal data too short
- pork:Muack::Matchsatisfy / runtime: 0.11009
Test Output:
marshal data too short
- pork:Muack::HashIncludingsatisfy / runtime: 0.111783
Test Output:
marshal data too short
- pork:Muack::Includingsatisfy / runtime: 0.11103
Test Output:
marshal data too short
- pork:Muack::Withinsatisfy / runtime: 0.070687
Test Output:
marshal data too short
- pork:Muack::RespondTosatisfy / runtime: 0.068049
Test Output:
marshal data too short
- pork:Muack::Satisfysatisfy / runtime: 0.067928
Test Output:
marshal data too short
- pork:Muack::Satisfy::Disjsatisfy / runtime: 0.067267
Test Output:
marshal data too short
- pork:Muack::Satisfy::Conjsatisfy / runtime: 0.067904
Test Output:
marshal data too short
-----------------------
Muack.verify:/Users/godfat/project/godfat/muack/lib/muack.rb:6
- pork:Muack::IsAsatisfy
- pork:Muack::Anythingsatisfy
- pork:Muack::Matchsatisfy
- pork:Muack::HashIncludingsatisfy
- pork:Muack::Includingsatisfy
- pork:Muack::Withinsatisfy
- pork:Muack::RespondTosatisfy
- pork:Muack::Satisfysatisfy
- pork:Muack::Satisfy::Disjsatisfy
- pork:Muack::Satisfy::Conjsatisfy
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: 10
- pork:Muack::IsAsatisfy / runtime: 0.117462
Test Output:
marshal data too short
- pork:Muack::Anythingsatisfy / runtime: 0.120399
Test Output:
marshal data too short
- pork:Muack::Matchsatisfy / runtime: 0.120511
Test Output:
marshal data too short
- pork:Muack::HashIncludingsatisfy / runtime: 0.105481
Test Output:
marshal data too short
- pork:Muack::Includingsatisfy / runtime: 0.072359
Test Output:
marshal data too short
- pork:Muack::Withinsatisfy / runtime: 0.070855
Test Output:
marshal data too short
- pork:Muack::RespondTosatisfy / runtime: 0.07229
Test Output:
marshal data too short
- pork:Muack::Satisfysatisfy / runtime: 0.069533
Test Output:
marshal data too short
- pork:Muack::Satisfy::Disjsatisfy / runtime: 0.069691
Test Output:
marshal data too short
- pork:Muack::Satisfy::Conjsatisfy / runtime: 0.067556
Test Output:
marshal data too short
-----------------------
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: 88
Kills: 85
Alive: 3
Runtime: 2.03s
Killtime: 13.18s
Overhead: -84.56%
Coverage: 96.59%
Expected: 100.00%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment