Skip to content

Commit

Permalink
Add public testonly package that returns a insecuresecretdataaccess.T…
Browse files Browse the repository at this point in the history
…oken.

#tinkApiChange

PiperOrigin-RevId: 673345298
Change-Id: Id49763c1ca0b2b72b0fafd9ab6256af89adae838
  • Loading branch information
juergw authored and copybara-github committed Sep 11, 2024
1 parent 8bef5ea commit d0e1a89
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
20 changes: 20 additions & 0 deletions testing/insecuresecretdataaccesstest/BUILD.bazel
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"],
)
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{}
}

0 comments on commit d0e1a89

Please sign in to comment.