Skip to content

Instantly share code, notes, and snippets.

View mbj's full-sized avatar

Markus Schirp mbj

View GitHub Profile
@mbj
mbj / response.txt
Created February 22, 2014 16:25
DENIC With DNSIMPLE.
53300102912
53300102912
Nameserver error
ERROR: 116 SOA record response must be authoritative (resolver, answer) (local interface [IPv4: nast-18-out.prod.denic.de/10.121.46.36|IPv6: /2a02:568:101:214:0:0:1:15], , targetting endpoint [2620:111:8003:0:0:0:0:53]:53 (UDP, Timeout: 3s, Retry: 1 x 0s, NO DNSSEC, ignore TC), local interface [IPv4: nast-18-out.prod.denic.de/10.121.46.36|IPv6: /2a02:568:101:214:0:0:1:15], , targetting endpoint [2620:111:8003:0:0:0:0:53]:53 (UDP, Timeout: 3s, Retry: 1 x 0s, NO DNSSEC, ignore TC): <No records>)
53300102912
Nameserver error
ERROR: 116 SOA record response must be authoritative (resolver, answer) (local interface [IPv4: nast-18-out.prod.denic.de/10.121.46.36|IPv6: /2a02:568:101:214:0:0:1:15], , targetting endpoint 50.31.242.53:53 (UDP, Timeout: 3s, Retry: 1 x 0s, NO DNSSEC, ignore TC), local interface [IPv4: nast-18-out.prod.denic.de/10.121.46.36|IPv6: /2a02:568:101:214:0:0:1:15], , targetting endpoint 50.31.242.53:53 (UDP, Timeout: 3s, Retry: 1 x 0s, NO DNSSEC, ignore TC)
@mbj
mbj / output.txt
Last active August 29, 2015 13:59
Mutant on naught
mbj@mbj ~/devel/naught (mutant) % bundle exec rake mutant
/home/mbj/.rubies/ruby-2.0.0-p353/bin/ruby -S rspec ./spec/base_object_spec.rb ./spec/basic_null_object_spec.rb ./spec/blackhole_spec.rb ./spec/explicit_conversions_spec.rb ./spec/functions/actual_spec.rb ./spec/functions/just_spec.rb ./spec/functions/maybe_spec.rb ./spec/functions/null_spec.rb ./spec/implicit_conversions_spec.rb ./spec/mimic_spec.rb ./spec/naught/null_object_builder/command_spec.rb ./spec/naught/null_object_builder_spec.rb ./spec/naught_spec.rb ./spec/pebble_spec.rb ./spec/predicate_spec.rb ./spec/singleton_null_object_spec.rb
....................................................................................
Finished in 0.03124 seconds
84 examples, 0 failures
Randomized with seed 32405
Mutant configuration:
module Foo
module Bar
Foo
end
module Foo
end
Foo
end
class Foo
# triggerable at load time, and only therew
foo = 1
def subject
# triggerable at runtime
foo = 1
end
end
module Other
end
module Foo
module Other
end
module Bar
def x
Other # Looked up to Foo::Other
class Foo
include Virtus.model(:foo, :bar)
end
@mbj
mbj / mutant.rake
Last active August 29, 2015 14:01
mutant raje tasj
# On production devtools is not loaded
if defined?(Devtools)
# Load all rake tasks
Rake.application.load_imports
# Remove metrics:mutant from devtools
task('metrics:mutant').clear
namespace :metrics do
allowed_versions = %w[mri-1.9.3 mri-2.0.0 rbx-1.9.3]
@mbj
mbj / input.rb
Last active August 29, 2015 14:02
mutant longest prefix match configuration spike
{"*"=>{"isolation"=>true, "selector"=>"exact"}, "Foo::Bar"=>{"isolation"=>false, "selector"=>"Foo#bar"}}
@mbj
mbj / report.txt
Created June 17, 2014 19:34
Example mutant report
Mutant configuration:
Matcher: #<Mutant::Matcher::Scope cache=#<Mutant::Cache> scope=TestApp::Literal>
Strategy: #<Mutant::Rspec::Strategy>
Expect Coverage: 100.00%
TestApp::Literal.string:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:22
- rspec:TestApp::Literal#command
- rspec:TestApp::Literal#string
.FFFF
(01/05) 20% - 0.10s
TestApp::Literal#boolean:/home/mbj/devel/mutant/test_app/lib/test_app/literal.rb:6
@mbj
mbj / check.rb
Last active August 29, 2015 14:03
Check for ruby {Class,Module}#name contract violations.
ObjectSpace.each_object(Module).each do |object|
method = object.method(:name)
name =
begin
object.name
rescue
puts "#{method} from object: #{object.inspect} raised exception"
next
end