Class: XCPretty::ActionsFormatter
- Inherits:
-
Simple
- Object
- Simple
- XCPretty::ActionsFormatter
- Defined in:
- lib/xcpretty/actions_formatter.rb
Instance Method Summary collapse
- #format_compile_error(file_name, file_path, reason, line, cursor) ⇒ Object
- #format_compile_warning(file_name, file_path, reason, line, cursor) ⇒ Object
- #format_error(message) ⇒ Object
- #format_failing_test(suite, test, reason, file_path) ⇒ Object
- #format_ld_warning(message) ⇒ Object
- #format_warning(message) ⇒ Object
Instance Method Details
#format_compile_error(file_name, file_path, reason, line, cursor) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/xcpretty/actions_formatter.rb', line 5 def format_compile_error(file_name, file_path, reason, line, cursor) file = file_path.match /^(.+):(\d+):(\d+)$/ if file.nil? STDOUT.puts "::error file=#{file_path}::#{reason}" else STDOUT.puts "::error file=#{file[1]},line=#{file[2]},col=#{file[3]}::#{reason}" end super end |
#format_compile_warning(file_name, file_path, reason, line, cursor) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/xcpretty/actions_formatter.rb', line 17 def format_compile_warning(file_name, file_path, reason, line, cursor) file = file_path.match /^(.+):(\d+):(\d+)$/ if file.nil? STDOUT.puts "::warning file=#{file_path}::#{reason}" else STDOUT.puts "::warning file=#{file[1]},line=#{file[2]},col=#{file[3]}::#{reason}" end super end |
#format_error(message) ⇒ Object
41 |
# File 'lib/xcpretty/actions_formatter.rb', line 41 def format_error(); STDOUT.puts "::error ::#{}"; super; end |
#format_failing_test(suite, test, reason, file_path) ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/xcpretty/actions_formatter.rb', line 29 def format_failing_test(suite, test, reason, file_path) file = file_path.match /^(.+):(\d+)$/ if file.nil? STDOUT.puts "::error file=#{file_path}::#{reason}" else STDOUT.puts "::error file=#{file[1]},line=#{file[2]}::#{reason}" end super end |
#format_ld_warning(message) ⇒ Object
42 |
# File 'lib/xcpretty/actions_formatter.rb', line 42 def format_ld_warning(); STDOUT.puts "::warning ::#{}"; super; end |
#format_warning(message) ⇒ Object
43 |
# File 'lib/xcpretty/actions_formatter.rb', line 43 def format_warning(); STDOUT.puts "::warning ::#{}"; super; end |