003 File Manager
Current Path:
/usr/src/contrib/ntp/sntp/unity/auto
usr
/
src
/
contrib
/
ntp
/
sntp
/
unity
/
auto
/
📁
..
📄
colour_prompt.rb
(2.61 KB)
📄
colour_reporter.rb
(1.04 KB)
📄
generate_config.yml
(1.24 KB)
📄
generate_module.rb
(7.19 KB)
📄
generate_test_runner.rb
(13.53 KB)
📄
parseOutput.rb
(6.43 KB)
📄
runner_maybe.c
(1021 B)
📄
test_file_filter.rb
(780 B)
📄
type_sanitizer.rb
(212 B)
📄
unity_test_summary.py
(4.92 KB)
📄
unity_test_summary.rb
(4.17 KB)
Editing: colour_reporter.rb
# ========================================== # Unity Project - A Test Framework for C # Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams # [Released under MIT License. Please refer to license.txt for details] # ========================================== require "#{File.expand_path(File.dirname(__FILE__))}/colour_prompt" $colour_output = true def report(message) if not $colour_output $stdout.puts(message) else message = message.join('\n') if (message.class == Array) message.each_line do |line| line.chomp! colour = case(line) when /(?:total\s+)?tests:?\s+(\d+)\s+(?:total\s+)?failures:?\s+\d+\s+Ignored:?/i ($1.to_i == 0) ? :green : :red when /PASS/ :green when /^OK$/ :green when /(?:FAIL|ERROR)/ :red when /IGNORE/ :yellow when /^(?:Creating|Compiling|Linking)/ :white else :silver end colour_puts(colour, line) end end $stdout.flush $stderr.flush end
Upload File
Create Folder