mutest 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c38bd30adb72c8ae32522bce5315f76698ec0985
4
- data.tar.gz: 721e007184e0196d72a6af5f24bdcd132ff82bdd
3
+ metadata.gz: b3342b18bb835fa632f2c85bf0bf29eba742d3b2
4
+ data.tar.gz: 646eead6d1d21490f3d5d8415da8386ea63869d2
5
5
  SHA512:
6
- metadata.gz: 5e1bbac9a9cb016697071788318b0cc736de824c20079bf0f33d52b205d3d241a486f88dfad7553dd2b94c7e87d29150b29e2062aedd6fb64e4ecfd2127272eb
7
- data.tar.gz: ba0bc30806cb7accc7cd2e7dd8a80f6dfaea20897b37f4755d5a8bd6a1e649a3a5ec7e40e41db3c39e44c97bc062a3a652287a30f46ae82466f8662a1797bf30
6
+ metadata.gz: 4d478337ef6a1dc3f078df73f18fbf48e0d1d139c6f1aa10de4d5dbe9ad37f1bda9738dba35b120461e3f1944fca26f23a7f5720bfe512c4eb0f6dc4d05fae03
7
+ data.tar.gz: 88cf68d896d143db8f1418055ee7aba9f07f818587f1a88fbf9b9380c094f0e34532563955d0fb6fcdfcfb6cc532caa87739552525d392aea919739961c7e058
@@ -35,7 +35,7 @@ GIT
35
35
  PATH
36
36
  remote: .
37
37
  specs:
38
- mutest (0.8.12)
38
+ mutest (0.0.2)
39
39
  abstract_type (~> 0.0.7)
40
40
  adamantium (~> 0.2.0)
41
41
  anima (~> 0.3.0)
@@ -1,3 +1,3 @@
1
1
  ---
2
2
  threshold: 16
3
- total_score: 1325
3
+ total_score: 1329
@@ -22,7 +22,7 @@ module Mutest
22
22
  # TODO: Support inline comment disable
23
23
  def ignore?(node)
24
24
  location = node.location
25
- return false unless location.expression
25
+ return false unless location && location.expression
26
26
 
27
27
  disable_lines.include?(location.line)
28
28
  end
@@ -1,4 +1,4 @@
1
1
  module Mutest
2
2
  # Current mutest version
3
- VERSION = '0.0.2'.freeze
3
+ VERSION = '0.0.3'.freeze
4
4
  end # Mutest
@@ -33,10 +33,14 @@ RSpec.describe Mutest::SourceFile do
33
33
  end
34
34
  end
35
35
 
36
- it 'ignores nodes that do not have a location' do
36
+ it 'ignores nodes that do not have a line' do
37
37
  _, bar_method = *ast
38
38
  _, bar_method_args, = *bar_method
39
39
 
40
40
  expect(source_file.ignore?(bar_method_args)).to be(false)
41
41
  end
42
+
43
+ it 'ignores nodes that do not have a location' do
44
+ expect(source_file.ignore?(s(:custom))).to be(false)
45
+ end
42
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mutest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Gollahon
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-30 00:00:00.000000000 Z
12
+ date: 2017-01-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parser