Skip to content

Commit

Permalink
Add filters to .simplecov
Browse files Browse the repository at this point in the history
  • Loading branch information
ngetahun committed Nov 4, 2024
1 parent 0dc9e06 commit 40bcfc1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .simplecov
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ unless ENV['NO_COVERAGE']

track_files('app/**/*.rb')
track_files('lib/**/*.rb')

add_filter('lib/rmt/config.rb')
add_filter('lib/rmt/db.rb')
add_filter('lib/rmt.rb')
add_filter('config/**/*(.rb|.yml)')
end
end

Expand Down
2 changes: 0 additions & 2 deletions lib/rmt.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# :nocov:
module RMT
VERSION ||= '2.19'.freeze

Expand All @@ -8,4 +7,3 @@ module RMT
DEFAULT_MIRROR_URL_PREFIX = '/repo/'.freeze
CREDENTIALS_FILE_LOCATION = '/etc/zypp/credentials.d/SCCcredentials'.freeze
end
# :nocov:
3 changes: 1 addition & 2 deletions lib/rmt/config.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# :nocov:
require 'config'
require_relative '../rmt'

Expand All @@ -12,6 +11,7 @@
File.join(__dir__, '../../config/rmt.local.yml')
)


module RMT::Config
class << self
def db_config(key = 'database')
Expand Down Expand Up @@ -77,4 +77,3 @@ def validate_int(value)
end
end
end
# :nocov:

0 comments on commit 40bcfc1

Please sign in to comment.