Skip to content

Commit

Permalink
rename galaxy to orbit
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jul 6, 2024
1 parent 9b55999 commit aaab42e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions galaxy/copier.go → orbit/copier.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Package galaxy provides functions to modify data structures among the various starr libraries.
// Package orbit provides functions to modify data structures among the various starr libraries.
// These functions cannot live in the starr library without causing an import cycle.
// These are wrappers around the starr library and other sub modules.
package galaxy
package orbit

import (
"bytes"
Expand Down
12 changes: 6 additions & 6 deletions galaxy/copier_test.go → orbit/copier_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package galaxy_test
package orbit_test

import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golift.io/starr"
"golift.io/starr/galaxy"
"golift.io/starr/orbit"
"golift.io/starr/prowlarr"
"golift.io/starr/sonarr"
)
Expand Down Expand Up @@ -39,7 +39,7 @@ func TestCopyIndexer(t *testing.T) {
}

// Verify everything copies over.
_, err := galaxy.CopyIndexer(src, dst, true)
_, err := orbit.CopyIndexer(src, dst, true)
require.NoError(t, err)
assert.Equal(t, src.Fields[0].Value, dst.Fields[0].Value)
assert.Equal(t, src.Fields[1].Value, dst.Fields[1].Value)
Expand All @@ -64,7 +64,7 @@ func TestCopyIndexer(t *testing.T) {
assert.True(t, dst.EnableInteractiveSearch)
assert.True(t, dst.EnableRss)
// Make sure tags get depleted.
starr.Must(galaxy.CopyIndexer(src, dst, false))
starr.Must(orbit.CopyIndexer(src, dst, false))
assert.Zero(t, dst.Tags)
}

Expand All @@ -74,6 +74,6 @@ func TestCopy(t *testing.T) {
broken := struct{}{}
good := &prowlarr.IndexerOutput{}

require.ErrorIs(t, galaxy.Copy(broken, good), galaxy.ErrNotPtr)
require.ErrorIs(t, galaxy.Copy(good, broken), galaxy.ErrNotPtr)
require.ErrorIs(t, orbit.Copy(broken, good), orbit.ErrNotPtr)
require.ErrorIs(t, orbit.Copy(good, broken), orbit.ErrNotPtr)
}

0 comments on commit aaab42e

Please sign in to comment.