gitee.com/mysnapcore/mysnapd@v0.1.0/asserts/sysdb/testkeys.go (about) 1 // -*- Mode: Go; indent-tabs-mode: t -*- 2 //go:build withtestkeys 3 // +build withtestkeys 4 5 /* 6 * Copyright (C) 2016 Canonical Ltd 7 * 8 * This program is free software: you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License version 3 as 10 * published by the Free Software Foundation. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. 19 * 20 */ 21 22 package sysdb 23 24 import ( 25 "gitee.com/mysnapcore/mysnapd/asserts/systestkeys" 26 ) 27 28 // init will inject the test trusted assertions when this module build tag "withtestkeys" is defined. 29 func init() { 30 InjectTrusted(systestkeys.Trusted) 31 }