Class: Faccts::RustCodeGenerator::BasicRustTestAssertionCallTemplateFetcher

Inherits:
Object
  • Object
show all
Defined in:
lib/faccts/03_generating_code/rust_code_generator.rb

Instance Method Summary collapse

Instance Method Details

#code_templateObject



47
48
49
50
51
52
53
54
# File 'lib/faccts/03_generating_code/rust_code_generator.rb', line 47

def code_template
  + "    name = \"/*{}*/\";\n" \
  + "    result = /*{}*/;\n" \
  + "    result_output = if result == true { \"PASS\" } else { \"FAIL\" };\n" \
  + "    test_result_output = format!(\"{},{}\", name, result_output);\n" \
  + "    test_suite_result_output += &test_result_output;\n" \
  + "    test_suite_result_output += \"\\n\";\n"
end