summaryrefslogtreecommitdiffhomepage
path: root/util/deephash/testtype/testtype.go
blob: b5775c62a0af1a2b491c1eb277e9de44fb1148a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright (c) Tailscale Inc & contributors
// 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}
}