From 973fb5dd3d9d85503ce0aff20b2541e768c2f7f4 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 2 Jan 2025 17:00:50 +0800 Subject: [PATCH] Remove assistant management files to streamline codebase - 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. --- neo/assistant/{assistant.go => load.go} | 0 neo/assistant/{assistant_test.go => load_test.go} | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename neo/assistant/{assistant.go => load.go} (100%) rename neo/assistant/{assistant_test.go => load_test.go} (97%) diff --git a/neo/assistant/assistant.go b/neo/assistant/load.go similarity index 100% rename from neo/assistant/assistant.go rename to neo/assistant/load.go diff --git a/neo/assistant/assistant_test.go b/neo/assistant/load_test.go similarity index 97% rename from neo/assistant/assistant_test.go rename to neo/assistant/load_test.go index fb4f20e1..5c6d21ba 100644 --- a/neo/assistant/assistant_test.go +++ b/neo/assistant/load_test.go @@ -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() @@ -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() @@ -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() @@ -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 @@ -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", @@ -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",