crude-mutant 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f10025c3ac3776c40079a52765bd4a8adb7c395def270b5f8e375762188a7abb
4
- data.tar.gz: 3e1b7636bd69e038fb229074eb6753b41bc71b1d0da826e77591665f3bff7ead
3
+ metadata.gz: b2b98dfe716c076de7969855f83a746f9f86448fe3ae893d60581f6d2914db66
4
+ data.tar.gz: cba5edbaf726bf8ff7806ba1e8c9aa4db368f48aaa31b711586098897427c350
5
5
  SHA512:
6
- metadata.gz: 10a73c97af25fea96f1de8d7afe4d3a146c97611e31f7e9286465691329db3ba9a5f3849b002360f7c7bbf206733df30d2faf09892615f8546c6391ab15e0ef7
7
- data.tar.gz: ec97fd27cdcacb2b3bca53857beb555069bf88c5cd40de5db062e507dbee908bd8a19cc31241e7da72f5f9d1f530e93a9ef0b52b202ac7b2a1f592b759cd1d82
6
+ metadata.gz: da2e670cf49f081d8ca233925eb607f3e7976c20f528d69bacb2bf83d3e5d940b08252b60383452a72082ee9d03404e4ca01721a7dbe7f04a6b005fd135d0552
7
+ data.tar.gz: bf8e68cc7ac3e9c3561a48c7ed7d423302bb8108af8cef64f071fe301878ab7009208de29f5af485d657512a0a78d7eb80945e814706d7fafcbf915b2c2f4df5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- crude-mutant (0.1.0)
4
+ crude-mutant (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A Ruby-based, language-agnostic tool for performing [mutation testing](https://en.wikipedia.org/wiki/Mutation_testing) on a file.
4
4
 
5
+ Mutation testing is the act of modifying production code and seeing if the tests still pass. If the tests still pass, you have some effectively useless code (according to the tests). This can be helpful to determine how good a file’s tests are and what code might be useless. This can be much more helpful than traditional code coverage tools, as they will only tell you if a line executes and not if the line is necessary to the program.
6
+
5
7
  This tool is relatively crude (hence the name) in that it will just remove lines one by one to detect which is a dangerous mutation (i.e. a line removed where all tests still pass).
6
8
 
7
9
  ## Installation
@@ -5,7 +5,7 @@ module CrudeMutant
5
5
  class LoadError < StandardError; end
6
6
 
7
7
  def self.load(file_path)
8
- if !File.exist?(file_path)
8
+ if !file_path.is_a?(String) || !File.exist?(file_path)
9
9
  raise LoadError
10
10
  end
11
11
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CrudeMutant
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crude-mutant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelly Sutton