MCPcopy Index your code
hub / github.com/coder/coder / ArchiveRefTime

Function ArchiveRefTime

archive/archivetest/archivetest.go:109–113  ·  view source on GitHub ↗

archiveRefTime is the Go reference time. The contents of the sample tar and zip files in testdata/ all have their modtimes set to the below in some timezone.

(t *testing.T)

Source from the content-addressed store, hash-verified

107// archiveRefTime is the Go reference time. The contents of the sample tar and zip files
108// in testdata/ all have their modtimes set to the below in some timezone.
109func ArchiveRefTime(t *testing.T) time.Time {
110 locMST, err := time.LoadLocation("MST")
111 require.NoError(t, err, "failed to load MST timezone")
112 return time.Date(2006, 1, 2, 3, 4, 5, 0, locMST)
113}

Callers 3

assertExtractedFilesFunction · 0.92
AssertSampleTarFileFunction · 0.85
AssertSampleZipFileFunction · 0.85

Calls

no outgoing calls

Tested by 1

assertExtractedFilesFunction · 0.74