spec/support/corpus.rb
def count_mutations(path)
        node = Parser::CurrentRuby.parse(path.read)

        return DEFAULT_MUTATION_COUNT unless node

        Mutest::Mutator.mutate(node).length
      end
# Count mutations generated for provided source file
#
# @param path [Pathname] path to a source file
#
# @raise [Exception] any error specified by integrations.yml
#
# @return [Integer] number of mutations generated
Count mutations generated for provided source file
Count mutations generated for provided source file
def count_mutations(path)
        node = Parser::CurrentRuby.parse(path.read)
        return DEFAULT_MUTATION_COUNT unless node
        Mutest::Mutator.mutate(node).length
      end
def count_mutations ( path ) node = Parser :: CurrentRuby . parse ( path . read ) return DEFAULT_MUTATION_COUNT unless node Mutest :: Mutator . mutate ( node ) . length end
Count mutations generated for provided source file
Count mutations generated for provided source file
number of mutations generated
number of mutations generated
Integer
[Exception] any error specified by integrations.yml
[ Exception ] any error specified by integrations . yml
path
path to a source file
path to a source file