-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pam/gdm: Use debug assertions only during tests
We may want to enable some checks only during checks or debug builds to be used in integration tests, so let's abstract things a bit more by exposing some features at runtime only. This allows to generate normal builds without debug checks but at the same time, to avoid having to define special build tags when testing, leaving the room for using special tags for building different binaries for integration tests or local debugging.
- Loading branch information
Showing
3 changed files
with
29 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package gdm | ||
|
||
func init() { | ||
checkMembersFunc = checkMembersDebug | ||
validateJSONFunc = validateJSONDebug | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters