From de002a9585d9fe06422db01629ff117f0150630f Mon Sep 17 00:00:00 2001 From: Joseph Richey Date: Sun, 11 Feb 2018 20:19:36 -0800 Subject: test: all packages should have tests The tests added in this change are trivial, but they make sure that every package has a non-zero number of tests. This is important for eventually increasing test coverage. --- pam/pam_test.go | 24 ++++++++++++++++++++++++ security/security_test.go | 24 ++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 pam/pam_test.go create mode 100644 security/security_test.go diff --git a/pam/pam_test.go b/pam/pam_test.go new file mode 100644 index 0000000..97cc792 --- /dev/null +++ b/pam/pam_test.go @@ -0,0 +1,24 @@ +/* + * pam_test.go - Stub test file that has one test that always passes. + * + * Copyright 2018 Google Inc. + * Author: Joe Richey (joerichey@google.com) + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package pam + +import "testing" + +func TestTrivial(t *testing.T) {} diff --git a/security/security_test.go b/security/security_test.go new file mode 100644 index 0000000..45e4f63 --- /dev/null +++ b/security/security_test.go @@ -0,0 +1,24 @@ +/* + * security_test.go - Stub test file that has one test that always passes. + * + * Copyright 2018 Google Inc. + * Author: Joe Richey (joerichey@google.com) + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ + +package security + +import "testing" + +func TestTrivial(t *testing.T) {} -- cgit v1.2.3