Skip to content

Commit

Permalink
godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
klaidliadon committed Oct 24, 2024
1 parent 984e5ea commit c8212eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ func (t ACL) Includes(session proto.SessionType) bool {
return t&ACL(1<<session) != 0
}

// VerifyACL checks that the given ACL config is valid for the given service.
// It can be used in unit tests to ensure that all methods are covered.
func VerifyACL[T any](acl Config[ACL]) error {
var t T
iType := reflect.TypeOf(&t).Elem()
Expand Down

0 comments on commit c8212eb

Please sign in to comment.