public class org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.base.lang.TestMatchCompiled extends org.finos.legend.pure.m.tests.function.base.lang.AbstractTestMatch
{
public void <init>()
{
org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.base.lang.TestMatchCompiled v;
v := @this: org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.base.lang.TestMatchCompiled;
specialinvoke v.<org.finos.legend.pure.m.tests.function.base.lang.AbstractTestMatch: void <init>()>();
return;
}
public static void setUp()
{
org.finos.legend.pure.m.coreinstance.CoreInstanceFactoryRegistry v;
org.finos.legend.pure.m.execution.FunctionExecution v;
v = staticinvoke <org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.base.lang.TestMatchCompiled: org.finos.legend.pure.m.execution.FunctionExecution getFunctionExecution()>();
v = staticinvoke <org.finos.legend.pure.runtime.java.compiled.factory.JavaModelFactoryRegistryLoader: org.finos.legend.pure.m.coreinstance.CoreInstanceFactoryRegistry loader()>();
staticinvoke <org.finos.legend.pure.m.tests.AbstractPureTestWithCoreCompiled: void setUpRuntime(org.finos.legend.pure.m.execution.FunctionExecution,org.finos.legend.pure.m.coreinstance.CoreInstanceFactoryRegistry)>(v, v);
return;
}
protected static org.finos.legend.pure.m.execution.FunctionExecution getFunctionExecution()
{
org.finos.legend.pure.runtime.java.compiled.execution.FunctionExecutionCompiled v;
org.finos.legend.pure.runtime.java.compiled.execution.FunctionExecutionCompiledBuilder v;
v = new org.finos.legend.pure.runtime.java.compiled.execution.FunctionExecutionCompiledBuilder;
specialinvoke v.<org.finos.legend.pure.runtime.java.compiled.execution.FunctionExecutionCompiledBuilder: void <init>()>();
v = virtualinvoke v.<org.finos.legend.pure.runtime.java.compiled.execution.FunctionExecutionCompiledBuilder: org.finos.legend.pure.runtime.java.compiled.execution.FunctionExecutionCompiled build()>();
return v;
}
public void testUnAssignedMatchInFuncExpression()
{
java.lang.String v;
org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.base.lang.TestMatchCompiled v;
java.lang.Exception v;
v := @this: org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.base.lang.TestMatchCompiled;
label:
staticinvoke <org.finos.legend.pure.runtime.java.compiled.generation.processors.support.function.base.lang.TestMatchCompiled: org.finos.legend.pure.m.SourceMutation compileTestSource(java.lang.String,java.lang.String)>("fromString.pure", "function testMatch(v:Any[1]):String[1]\n{\n   $v->match(  [\n                    a:AA[1] | \'AA\',\n                    b:BB[1] | \'BB\'\n                ]\n             );\n\n   $v->match(  [\n                    a:AA[1] | \'AA\',\n                    b:BB[1] | \'BB\'\n                ]\n             );\n}\n\nClass AA\n{\n   name:String[*];\n}\n\nClass BB\n{\n   name:String[*];\n}\n");
label:
goto label;
label:
v := @caughtexception;
v = virtualinvoke v.<java.lang.Exception: java.lang.String getMessage()>();
staticinvoke <org.junit.Assert: void fail(java.lang.String)>(v);
label:
return;
catch java.lang.Exception from label to label with label;
}
}