diff --git a/.simplecov b/.simplecov index e08fb8ee6..184c3ee7c 100644 --- a/.simplecov +++ b/.simplecov @@ -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 diff --git a/lib/rmt.rb b/lib/rmt.rb index 7d62b9bce..08a1fa97a 100644 --- a/lib/rmt.rb +++ b/lib/rmt.rb @@ -1,4 +1,3 @@ -# :nocov: module RMT VERSION ||= '2.19'.freeze @@ -8,4 +7,3 @@ module RMT DEFAULT_MIRROR_URL_PREFIX = '/repo/'.freeze CREDENTIALS_FILE_LOCATION = '/etc/zypp/credentials.d/SCCcredentials'.freeze end -# :nocov: diff --git a/lib/rmt/config.rb b/lib/rmt/config.rb index a967e8f53..650a316ad 100644 --- a/lib/rmt/config.rb +++ b/lib/rmt/config.rb @@ -1,4 +1,3 @@ -# :nocov: require 'config' require_relative '../rmt' @@ -12,6 +11,7 @@ File.join(__dir__, '../../config/rmt.local.yml') ) + module RMT::Config class << self def db_config(key = 'database') @@ -77,4 +77,3 @@ def validate_int(value) end end end -# :nocov: