Class: Faccts::RustCodeGenerator::BasicRustTestAssertionCallTemplateFetcher

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

Instance Method Summary collapse

Instance Method Details

#code_templateObject



6
7
8
9
10
11
12
13
# File 'lib/faccts/03_generating_code/templates/basic_rust_test_assertion_call_template_fetcher.rb', line 6

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