Debian Codegraph @

landlock/abi_versions_test.go

raw
1 package landlock
2
3 import (
4 "testing"
5 )
6
7 func TestAbiVersionsIncrementing(t *testing.T) {
8 for i, abiInfo := range abiInfos {
9 if i != abiInfo.version {
10 t.Errorf("Expected ABI version %d at index %d, got version %d", i, i, abiInfo.version)
11 }
12 }
13 }
14
15 func TestSupportedAccessFS(t *testing.T) {
16 got := abiInfos[9].supportedAccessFS
17 want := supportedAccessFS
18
19 if got != want {
20 t.Errorf("V9 supported access FS: got %v, want %v", got, want)
21 }
22 }