Skip to content

Commit

Permalink
Remove assistant management files to streamline codebase
Browse files Browse the repository at this point in the history
- Deleted the assistant.go and assistant_test.go files, which contained the implementation and tests for assistant management.
- This cleanup reduces complexity and focuses on core functionalities, paving the way for future enhancements in assistant handling.
  • Loading branch information
trheyi committed Jan 2, 2025
1 parent 2903602 commit 973fb5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions neo/assistant/assistant_test.go → neo/assistant/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func prepare(t *testing.T) {
test.Prepare(t, config.Conf)
}

func TestAssistant_LoadPath(t *testing.T) {
func TestLoad_LoadPath(t *testing.T) {
prepare(t)
defer test.Clean()

Expand All @@ -37,7 +37,7 @@ func TestAssistant_LoadPath(t *testing.T) {
assert.Error(t, err)
}

func TestAssistant_LoadStore(t *testing.T) {
func TestLoad_LoadStore(t *testing.T) {
prepare(t)
defer test.Clean()

Expand Down Expand Up @@ -79,7 +79,7 @@ func TestAssistant_LoadStore(t *testing.T) {
assert.Error(t, err)
}

func TestAssistant_Cache(t *testing.T) {
func TestLoad_Cache(t *testing.T) {
prepare(t)
defer test.Clean()

Expand Down Expand Up @@ -127,7 +127,7 @@ func TestAssistant_Cache(t *testing.T) {
assert.NotNil(t, loaded)
}

func TestAssistant_Validate(t *testing.T) {
func TestLoad_Validate(t *testing.T) {
tests := []struct {
name string
ast *Assistant
Expand Down Expand Up @@ -178,7 +178,7 @@ func TestAssistant_Validate(t *testing.T) {
}
}

func TestAssistant_Clone(t *testing.T) {
func TestLoad_Clone(t *testing.T) {
// Create a test assistant with all fields populated
original := &Assistant{
ID: "test-id",
Expand Down Expand Up @@ -233,7 +233,7 @@ func TestAssistant_Clone(t *testing.T) {
assert.Nil(t, nilAssistant.Clone())
}

func TestAssistant_Update(t *testing.T) {
func TestLoad_Update(t *testing.T) {
// Create a test assistant
ast := &Assistant{
ID: "test-id",
Expand Down

0 comments on commit 973fb5d

Please sign in to comment.