Make local graph execution optional across composed packages
This commit is contained in:
@@ -192,9 +192,9 @@ test("rule private edges substitute Self and captured endpoints with stable proj
|
||||
|
||||
test("rule creation ports close captured atom parameters and retain initialization checking", () => {
|
||||
const compile = fixture([
|
||||
'interface Factory<object T> id "factory" revision "factory@1" {operation create id "create" : unit -> ref<T> {call id "call" execution transaction targets [browser,server];}}',
|
||||
'interface Factory<object T> id "factory" revision "factory@1" {operation create id "create" : unit -> ref<T> {call id "call" execution transaction;}}',
|
||||
'interface Creates<object T> id "creates" revision "creates@1" {}',
|
||||
'package Runtime id "runtime" revision "runtime@1" {operation create<object T> id "create" : unit -> ref<T> mode call execution transaction targets [browser,server] receiver any requires {creation result id "result" : T input unit;};}',
|
||||
'symbol JavaScript id "target:org.quixos.execution.javascript@1";\npackage Runtime id "runtime" revision "runtime@1" {operation create<object T> id "create" : unit -> ref<T> mode call execution transaction targets [JavaScript,server] receiver any requires {creation result id "result" : T input unit;};}',
|
||||
]);
|
||||
const rule = `conform<object T> Creates<T> as Factory<T> id "factory-rule" {
|
||||
bind create.call to package Runtime.create<T> with {result to creation T with {};};
|
||||
@@ -324,7 +324,7 @@ test("rule inverse reads retain the concrete conformance ownership checks", () =
|
||||
const compile = fixture([
|
||||
'interface Parent id "parent" revision "parent@1" {}',
|
||||
'interface Child id "child" revision "child@1" {}',
|
||||
'import interface Parent; interface Owned id "owned" revision "owned@1" {queryable relation parent id "parent-ref" : optional-one interface Parent {resolve id "parent-read" execution snapshot targets [browser,server];}}',
|
||||
'import interface Parent; interface Owned id "owned" revision "owned@1" {queryable relation parent id "parent-ref" : optional-one interface Parent {resolve id "parent-read" execution snapshot;}}',
|
||||
]);
|
||||
const source = `
|
||||
atom P id "p"; atom C id "c";
|
||||
|
||||
Reference in New Issue
Block a user