-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add public testonly package that returns a insecuresecretdataaccess.T…
…oken. #tinkApiChange PiperOrigin-RevId: 673345298 Change-Id: Id49763c1ca0b2b72b0fafd9ab6256af89adae838
- Loading branch information
1 parent
8bef5ea
commit d0e1a89
Showing
2 changed files
with
44 additions
and
0 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,20 @@ | ||
load("@io_bazel_rules_go//go:def.bzl", "go_library") | ||
|
||
package(default_visibility = ["//:__subpackages__"]) # keep | ||
|
||
licenses(["notice"]) # keep | ||
|
||
go_library( | ||
name = "insecuresecretdataaccesstest", | ||
testonly = 1, | ||
srcs = ["insecuresecretdataaccesstest.go"], | ||
importpath = "github.com/tink-crypto/tink-go/v2/testing/insecuresecretdataaccesstest", | ||
visibility = ["//visibility:public"], | ||
deps = ["//insecuresecretdataaccess"], | ||
) | ||
|
||
alias( | ||
name = "go_default_library", | ||
actual = ":insecuresecretdataaccesstest", | ||
visibility = ["//visibility:public"], | ||
) |
24 changes: 24 additions & 0 deletions
24
testing/insecuresecretdataaccesstest/insecuresecretdataaccesstest.go
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,24 @@ | ||
// Copyright 2024 Google LLC | ||
// | ||
// 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 insecuresecretdataaccesstest provides a utility function to obtain a | ||
// [insecuresecretdataaccess.Token] value to use in tests. | ||
package insecuresecretdataaccesstest | ||
|
||
import "github.com/tink-crypto/tink-go/v2/insecuresecretdataaccess" | ||
|
||
// Token returns a [insecuresecretdataaccess.Token] for use in tests. | ||
func Token() insecuresecretdataaccess.Token { | ||
return insecuresecretdataaccess.Token{} | ||
} |