Remove trailing spaces
This commit is contained in:
Родитель
8b515142f0
Коммит
f0321d22bb
|
@ -4,6 +4,6 @@ require_relative 'application_insights/version'
|
|||
|
||||
module ApplicationInsights
|
||||
module Rack
|
||||
autoload :TrackRequest, "application_insights/rack/track_request"
|
||||
autoload :TrackRequest, "application_insights/rack/track_request"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require_relative 'json_serializable'
|
||||
|
||||
module ApplicationInsights
|
||||
module Channel
|
||||
module Contracts
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require_relative 'json_serializable'
|
||||
|
||||
module ApplicationInsights
|
||||
module Channel
|
||||
module Contracts
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
require_relative 'json_serializable'
|
||||
|
||||
module ApplicationInsights
|
||||
module Channel
|
||||
module Contracts
|
||||
|
@ -7,10 +5,10 @@ module ApplicationInsights
|
|||
class DependencySourceType
|
||||
# Enumeration value UNDEFINED.
|
||||
UNDEFINED = 0
|
||||
|
||||
|
||||
# Enumeration value AIC.
|
||||
AIC = 1
|
||||
|
||||
|
||||
# Enumeration value APMC.
|
||||
APMC = 2
|
||||
end
|
||||
|
|
|
@ -7,16 +7,16 @@ module ApplicationInsights
|
|||
class SeverityLevel
|
||||
# Enumeration value VERBOSE.
|
||||
VERBOSE = 0
|
||||
|
||||
|
||||
# Enumeration value INFORMATION.
|
||||
INFORMATION = 1
|
||||
|
||||
|
||||
# Enumeration value WARNING.
|
||||
WARNING = 2
|
||||
|
||||
|
||||
# Enumeration value ERROR.
|
||||
ERROR = 3
|
||||
|
||||
|
||||
# Enumeration value CRITICAL.
|
||||
CRITICAL = 4
|
||||
end
|
||||
|
|
|
@ -8,7 +8,7 @@ class TestApplication < Test::Unit::TestCase
|
|||
item = Contracts::Application.new
|
||||
assert_not_nil item
|
||||
end
|
||||
|
||||
|
||||
def test_ver_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Application.new
|
||||
|
@ -20,7 +20,7 @@ class TestApplication < Test::Unit::TestCase
|
|||
actual = item.ver
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_build_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Application.new
|
||||
|
@ -32,7 +32,7 @@ class TestApplication < Test::Unit::TestCase
|
|||
actual = item.build
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_to_json_works_as_expected
|
||||
item = Contracts::Application.new
|
||||
item.ver = 'Test string'
|
||||
|
|
|
@ -8,7 +8,7 @@ class TestData < Test::Unit::TestCase
|
|||
item = Contracts::Data.new
|
||||
assert_not_nil item
|
||||
end
|
||||
|
||||
|
||||
def test_base_type_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Data.new
|
||||
|
@ -20,7 +20,7 @@ class TestData < Test::Unit::TestCase
|
|||
actual = item.base_type
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_base_data_works_as_expected
|
||||
expected = { 'key' => 'value' }
|
||||
item = Contracts::Data.new
|
||||
|
@ -32,7 +32,7 @@ class TestData < Test::Unit::TestCase
|
|||
actual = item.base_data
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_to_json_works_as_expected
|
||||
item = Contracts::Data.new
|
||||
item.base_type = 'Test string'
|
||||
|
|
|
@ -8,7 +8,7 @@ class TestDataPoint < Test::Unit::TestCase
|
|||
item = Contracts::DataPoint.new
|
||||
assert_not_nil item
|
||||
end
|
||||
|
||||
|
||||
def test_name_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::DataPoint.new
|
||||
|
@ -20,7 +20,7 @@ class TestDataPoint < Test::Unit::TestCase
|
|||
actual = item.name
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_kind_works_as_expected
|
||||
expected = 5
|
||||
item = Contracts::DataPoint.new
|
||||
|
@ -32,7 +32,7 @@ class TestDataPoint < Test::Unit::TestCase
|
|||
actual = item.kind
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_value_works_as_expected
|
||||
expected = 1.5
|
||||
item = Contracts::DataPoint.new
|
||||
|
@ -44,7 +44,7 @@ class TestDataPoint < Test::Unit::TestCase
|
|||
actual = item.value
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_count_works_as_expected
|
||||
expected = 42
|
||||
item = Contracts::DataPoint.new
|
||||
|
@ -56,7 +56,7 @@ class TestDataPoint < Test::Unit::TestCase
|
|||
actual = item.count
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_min_works_as_expected
|
||||
expected = 1.5
|
||||
item = Contracts::DataPoint.new
|
||||
|
@ -68,7 +68,7 @@ class TestDataPoint < Test::Unit::TestCase
|
|||
actual = item.min
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_max_works_as_expected
|
||||
expected = 1.5
|
||||
item = Contracts::DataPoint.new
|
||||
|
@ -80,7 +80,7 @@ class TestDataPoint < Test::Unit::TestCase
|
|||
actual = item.max
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_std_dev_works_as_expected
|
||||
expected = 1.5
|
||||
item = Contracts::DataPoint.new
|
||||
|
@ -92,7 +92,7 @@ class TestDataPoint < Test::Unit::TestCase
|
|||
actual = item.std_dev
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_to_json_works_as_expected
|
||||
item = Contracts::DataPoint.new
|
||||
item.name = 'Test string'
|
||||
|
|
|
@ -8,7 +8,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
item = Contracts::Envelope.new
|
||||
assert_not_nil item
|
||||
end
|
||||
|
||||
|
||||
def test_ver_works_as_expected
|
||||
expected = 42
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -20,7 +20,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.ver
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_name_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -32,7 +32,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.name
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_time_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -44,7 +44,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.time
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_sample_rate_works_as_expected
|
||||
expected = 1.5
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -56,7 +56,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.sample_rate
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_seq_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -68,7 +68,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.seq
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_i_key_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -80,7 +80,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.i_key
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_flags_works_as_expected
|
||||
expected = 42
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -92,7 +92,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.flags
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_device_id_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -104,7 +104,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.device_id
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_os_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -116,7 +116,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.os
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_os_ver_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -128,7 +128,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.os_ver
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_app_id_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -140,7 +140,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.app_id
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_app_ver_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -152,7 +152,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.app_ver
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_user_id_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -164,13 +164,13 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.user_id
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_tags_works_as_expected
|
||||
item = Contracts::Envelope.new
|
||||
actual = item.tags
|
||||
assert_not_nil actual
|
||||
end
|
||||
|
||||
|
||||
def test_data_works_as_expected
|
||||
expected = { 'key' => 'value' }
|
||||
item = Contracts::Envelope.new
|
||||
|
@ -182,7 +182,7 @@ class TestEnvelope < Test::Unit::TestCase
|
|||
actual = item.data
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_to_json_works_as_expected
|
||||
item = Contracts::Envelope.new
|
||||
item.ver = 42
|
||||
|
|
|
@ -8,7 +8,7 @@ class TestEventData < Test::Unit::TestCase
|
|||
item = Contracts::EventData.new
|
||||
assert_not_nil item
|
||||
end
|
||||
|
||||
|
||||
def test_ver_works_as_expected
|
||||
expected = 42
|
||||
item = Contracts::EventData.new
|
||||
|
@ -20,7 +20,7 @@ class TestEventData < Test::Unit::TestCase
|
|||
actual = item.ver
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_name_works_as_expected
|
||||
expected = 'Test string'
|
||||
item = Contracts::EventData.new
|
||||
|
@ -32,19 +32,19 @@ class TestEventData < Test::Unit::TestCase
|
|||
actual = item.name
|
||||
assert_equal expected, actual
|
||||
end
|
||||
|
||||
|
||||
def test_properties_works_as_expected
|
||||
item = Contracts::EventData.new
|
||||
actual = item.properties
|
||||
assert_not_nil actual
|
||||
end
|
||||
|
||||
|
||||
def test_measurements_works_as_expected
|
||||
item = Contracts::EventData.new
|
||||
actual = item.measurements
|
||||
assert_not_nil actual
|
||||
end
|
||||
|
||||
|
||||
def test_to_json_works_as_expected
|
||||
item = Contracts::EventData.new
|
||||
item.ver = 42
|
||||
|
|
|
@ -94,7 +94,6 @@ class TestExceptionData < Test::Unit::TestCase
|
|||
[ { 'key' => 'value' } ].each do |value|
|
||||
item.exceptions.push value
|
||||
end
|
||||
|
||||
item.severity_level = 5
|
||||
item.problem_id = 'Test string'
|
||||
item.crash_thread_id = 42
|
||||
|
|
|
@ -44,4 +44,4 @@ class TestAsynchronousQueue < Test::Unit::TestCase
|
|||
result = queue.flush_notification.wait
|
||||
assert_equal true, result
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -88,9 +88,7 @@ class MockTelemetryChannelQueue < QueueBase
|
|||
@flush_count = 0
|
||||
end
|
||||
|
||||
attr_accessor :flush_count
|
||||
|
||||
attr_accessor :queue
|
||||
attr_accessor :flush_count, :queue
|
||||
|
||||
def push(data)
|
||||
@queue.push data
|
||||
|
@ -99,4 +97,4 @@ class MockTelemetryChannelQueue < QueueBase
|
|||
def flush
|
||||
@flush_count += 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче