Skip to content

Commit 3aad845

Browse files
committed
Adapt dataplane_spec_test
1 parent e3e4f4e commit 3aad845

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

router/dataplane_spec_test.gobra

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// TODO: Include this file in the verification again.
16-
// gobra
15+
// +gobra
1716

1817
package router
1918

@@ -86,12 +85,14 @@ requires macFactory != nil &&
8685
len(*key) > 0 &&
8786
acc(sl.Bytes(*key, 0, len(*key)), _) &&
8887
scrypto.ValidKeyForHash(*key) &&
89-
macFactory implements MacFactorySpec{key}
88+
acc(asid) && asid.V == 1000 &&
89+
macFactory implements MacFactorySpec{key, asid}
9090
requires metrics != nil && metrics.Mem()
9191
requires ctx != nil && ctx.Mem()
9292
func testRun(
93-
macFactory func() hash.Hash,
93+
macFactory func() (hash.Hash, ghost hash.ScionHashSpec),
9494
key *[]byte,
95+
ghost asid gpointer[io.AS],
9596
metrics *Metrics,
9697
ctx context.Context,
9798
ghost place io.Place,
@@ -130,6 +131,7 @@ func testRun(
130131
d.svc = newServices()
131132
d.macFactory = macFactory
132133
d.key = key
134+
d.asid = asid
133135
d.localIA = 1000
134136
d.Metrics = metrics
135137
d.bfdSessions = make(map[uint16]bfdSession)

0 commit comments

Comments
 (0)