diff options
| author | Rémy Coutable <remy@rymai.me> | 2017-08-11 17:08:13 +0000 |
|---|---|---|
| committer | Rémy Coutable <remy@rymai.me> | 2017-08-11 17:08:13 +0000 |
| commit | 7da3e41408a824b4f45b68453e56f287ef075212 (patch) | |
| tree | bd5d606e7c469d466e03a0b11cc6c7de872ad6e6 /lib | |
| parent | 5896d1b1e6d7ddf7b02979e6d6aec34e0a10960c (diff) | |
| parent | d0622b79d8d011c80f63e71c96e69754a5b0ec16 (diff) | |
| download | gitlab-ce-7da3e41408a824b4f45b68453e56f287ef075212.tar.gz | |
Merge branch 'rs-coverage-updates' into 'master'
Better categorize test coverage results
See merge request !13485
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/file_streamer.rb | 16 | ||||
| -rw-r--r-- | lib/gitlab/middleware/webpack_proxy.rb | 2 | ||||
| -rw-r--r-- | lib/gitlab/o_auth/session.rb | 2 | ||||
| -rw-r--r-- | lib/gitlab/seeder.rb | 2 |
4 files changed, 6 insertions, 16 deletions
diff --git a/lib/file_streamer.rb b/lib/file_streamer.rb deleted file mode 100644 index 4e3c6d3c773..00000000000 --- a/lib/file_streamer.rb +++ /dev/null @@ -1,16 +0,0 @@ -class FileStreamer #:nodoc: - attr_reader :to_path - - def initialize(path) - @to_path = path - end - - # Stream the file's contents if Rack::Sendfile isn't present. - def each - File.open(to_path, 'rb') do |file| - while chunk = file.read(16384) - yield chunk - end - end - end -end diff --git a/lib/gitlab/middleware/webpack_proxy.rb b/lib/gitlab/middleware/webpack_proxy.rb index 6105d165810..6aecf63231f 100644 --- a/lib/gitlab/middleware/webpack_proxy.rb +++ b/lib/gitlab/middleware/webpack_proxy.rb @@ -1,6 +1,7 @@ # This Rack middleware is intended to proxy the webpack assets directory to the # webpack-dev-server. It is only intended for use in development. +# :nocov: module Gitlab module Middleware class WebpackProxy < Rack::Proxy @@ -22,3 +23,4 @@ module Gitlab end end end +# :nocov: diff --git a/lib/gitlab/o_auth/session.rb b/lib/gitlab/o_auth/session.rb index f33bfd0bd0e..30739f2a2c5 100644 --- a/lib/gitlab/o_auth/session.rb +++ b/lib/gitlab/o_auth/session.rb @@ -1,3 +1,4 @@ +# :nocov: module Gitlab module OAuth module Session @@ -15,3 +16,4 @@ module Gitlab end end end +# :nocov: diff --git a/lib/gitlab/seeder.rb b/lib/gitlab/seeder.rb index 823f697f51c..f9ab9bd466f 100644 --- a/lib/gitlab/seeder.rb +++ b/lib/gitlab/seeder.rb @@ -1,3 +1,4 @@ +# :nocov: module DeliverNever def deliver_later self @@ -21,3 +22,4 @@ module Gitlab end end end +# :nocov: |
