Documentation ¶
Index ¶
- Constants
- Variables
- func CopyFile(dst, src string, perm os.FileMode) error
- func DecodeHexString(c *C, s string) []byte
- func DecodeHexStringT(t *testing.T, s string) []byte
- func EFIReadVar(dir, name string, guid efi.GUID) ([]byte, efi.VariableAttributes, error)
- func GetKeyringKeys(c *C, keyringId int) (out []int)
- func InSlice(checker Checker) Checker
- func MakeMockCore20ModelAssertion(c *C, headers map[string]interface{}, signKeyHash string) secboot.SnapModel
- type KeyringTestBase
Constants ¶
View Source
const (
UserKeyring = -4
)
Variables ¶
View Source
var HasKey = &hasKeyChecker{ &CheckerInfo{Name: "HasKey", Params: []string{"map", "key"}}}
View Source
var IsTrue Checker = &isTrueChecker{ &CheckerInfo{Name: "IsTrue", Params: []string{"value"}}}
View Source
var RandReader = &testRng{}
Functions ¶
func DecodeHexString ¶
func EFIReadVar ¶
func GetKeyringKeys ¶
func InSlice ¶
func InSlice(checker Checker) Checker
InSlice determines whether a value is contained in the provided slice, using the specified checker.
For example:
c.Check(value, InSlice(Equals), []int{1, 2, 3})
Types ¶
type KeyringTestBase ¶
func (*KeyringTestBase) SetUpSuite ¶
func (b *KeyringTestBase) SetUpSuite(c *C)
func (*KeyringTestBase) SetUpTest ¶
func (b *KeyringTestBase) SetUpTest(c *C)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.