(String[] args)
| 1 | import org.rustlang.runtime.Utf8View; |
| 2 | |
| 3 | public class Main { |
| 4 | public static void main(String[] args) { |
| 5 | jvm_hello.Ciallo data = new jvm_hello.Ciallo(233, Utf8View.fromJavaString("wooooooooo")); |
| 6 | String result = Utf8View.toJavaString(jvm_hello.jvm_hello.ciallo(data)); |
| 7 | if (result.equals("Hello from Rust!")) { |
| 8 | System.out.println("Test passed: " + result); |
| 9 | } else { |
| 10 | throw new AssertionError("Test failed: expected 'Hello from Rust!' but got '" + result + "'"); |
| 11 | } |
| 12 | } |
| 13 | } |
nothing calls this directly
no outgoing calls
no test coverage detected