Reformatting go code.
Public PR: https://github.com/google/tink/pull/68.
Change-Id: Ib87063d72017d34f96872c2de1088df96f03371c
ORIGINAL_AUTHOR=Thai Duong <[email protected]>
GitOrigin-RevId: 180def9971226c35baa93407d654d63cf719e2ba
diff --git a/go/aead/aead_config_test.go b/go/aead/aead_config_test.go
index 0a37186..b83c014 100644
--- a/go/aead/aead_config_test.go
+++ b/go/aead/aead_config_test.go
@@ -13,30 +13,31 @@
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////////
+
package aead_test
import (
- "testing"
- "github.com/google/tink/go/tink/tink"
- "github.com/google/tink/go/aead/aead"
+ "github.com/google/tink/go/aead/aead"
+ "github.com/google/tink/go/tink/tink"
+ "testing"
)
func TestConfigInstance(t *testing.T) {
- c := aead.Config()
- if c == nil {
- t.Errorf("Config() returns nil")
- }
+ c := aead.Config()
+ if c == nil {
+ t.Errorf("Config() returns nil")
+ }
}
func TestConfigRegistration(t *testing.T) {
- success, err := aead.Config().RegisterStandardKeyTypes()
- if !success || err != nil {
- t.Errorf("cannot register standard key types")
- }
- // check for AES-GCM key manager
- keyManager, err := tink.Registry().GetKeyManager(aead.AES_GCM_TYPE_URL)
- if err != nil {
- t.Errorf("unexpected error: %s", err)
- }
- var _ = keyManager.(*aead.AesGcmKeyManager)
-}
\ No newline at end of file
+ success, err := aead.Config().RegisterStandardKeyTypes()
+ if !success || err != nil {
+ t.Errorf("cannot register standard key types")
+ }
+ // check for AES-GCM key manager
+ keyManager, err := tink.Registry().GetKeyManager(aead.AES_GCM_TYPE_URL)
+ if err != nil {
+ t.Errorf("unexpected error: %s", err)
+ }
+ var _ = keyManager.(*aead.AesGcmKeyManager)
+}