MCPcopy Create free account
hub / github.com/dynjs/dynjs / evalLines

Method evalLines

src/test/java/org/dynjs/runtime/DynJSTest.java:55–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 @Test
56 public void evalLines() {
57 getRuntime().evaluate(
58 "var x = 'test'",
59 "var y = x");
60 Reference y = getContext().resolve("y");
61 assertThat(y)
62 .isNotNull()
63 .isInstanceOf(Reference.class);
64 assertThat(y.getValue(getContext()))
65 .isEqualTo("test");
66 }
67
68 @Test
69 public void assignsGlobalVariables() {

Callers

nothing calls this directly

Calls 5

getValueMethod · 0.95
resolveMethod · 0.80
getContextMethod · 0.80
evaluateMethod · 0.65
getRuntimeMethod · 0.45

Tested by

no test coverage detected