summaryrefslogtreecommitdiffhomepage
path: root/util/deephash/testtype/testtype.go
blob: 3c90053d6dfd5ddc7c5c4d6d98c7186f0197e484 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) Tailscale Inc & AUTHORS
// SPDX-License-Identifier: BSD-3-Clause

// Package testtype contains types for testing deephash.
package testtype

import "time"

type UnexportedAddressableTime struct {
	t time.Time
}

func NewUnexportedAddressableTime(t time.Time) *UnexportedAddressableTime {
	return &UnexportedAddressableTime{t: t}
}