MCPcopy Create free account
hub / github.com/dagger/dagger / TestRemoteWorkspaceAddress

Function TestRemoteWorkspaceAddress

engine/server/session_test.go:669–674  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

667}
668
669func TestRemoteWorkspaceAddress(t *testing.T) {
670 t.Parallel()
671
672 require.Equal(t, "https://github.com/dagger/dagger@main", remoteWorkspaceAddress("https://github.com/dagger/dagger", ".", "main"))
673 require.Equal(t, "https://github.com/dagger/dagger/services/payment@main", remoteWorkspaceAddress("https://github.com/dagger/dagger", "services/payment", "main"))
674}
675
676func TestParseWorkspaceRemoteRef(t *testing.T) {
677 t.Parallel()

Callers

nothing calls this directly

Calls 2

remoteWorkspaceAddressFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected