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

Function mustLocation

coderd/workspaces_test.go:4082–4090  ·  view source on GitHub ↗
(t *testing.T, location string)

Source from the content-addressed store, hash-verified

4080}
4081
4082func mustLocation(t *testing.T, location string) *time.Location {
4083 t.Helper()
4084 loc, err := time.LoadLocation(location)
4085 if err != nil {
4086 t.Errorf("failed to load location %s: %s", location, err.Error())
4087 }
4088
4089 return loc
4090}
4091
4092func TestWorkspaceResource(t *testing.T) {
4093 t.Parallel()

Callers 1

Calls 3

HelperMethod · 0.65
ErrorfMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected