From a7ce77be27d8e3728b97122a005bc5b23298cfc3 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 24 Aug 2021 15:50:19 +0000 Subject: all: introduce call properties Call properties let us specify how each individual call within a program must be executed. So far the only way to enforce extra rules was to pass extra program-level properties (e.g. that is how fault injection was done). However, it entangles the logic and not flexible enough. Implement an ability to pass properties along with each individual call. --- prog/clone.go | 1 + 1 file changed, 1 insertion(+) (limited to 'prog/clone.go') diff --git a/prog/clone.go b/prog/clone.go index c95ae206b..d1e23409b 100644 --- a/prog/clone.go +++ b/prog/clone.go @@ -23,6 +23,7 @@ func (p *Prog) Clone() *Prog { for ai, arg := range c.Args { c1.Args[ai] = clone(arg, newargs) } + c1.Props = c.Props p1.Calls[ci] = c1 } p1.debugValidate() -- cgit mrf-deployment