Class: Buildkite::TestCollector::Trace

Inherits:
Object
  • Object
show all
Defined in:
lib/buildkite/test_collector/trace.rb

Instance Method Summary collapse

Instance Method Details

#as_hashObject



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/buildkite/test_collector/trace.rb', line 6

def as_hash
  strip_invalid_utf8_chars(
    scope: scope,
    name: name,
    location: prepend_location_prefix(location),
    file_name: prepend_location_prefix(file_name),
    result: result,
    failure_reason: failure_reason,
    failure_expanded: failure_expanded,
    history: history,
    tags: tags,
  ).select { |_, value| !value.nil? }
end