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.
This commit is contained in:
Max 2025-01-02 17:00:50 +08:00
parent 2903602c6b
commit 973fb5dd3d
2 changed files with 6 additions and 6 deletions

View file

@ -14,7 +14,7 @@ func prepare(t *testing.T) {
test.Prepare(t, config.Conf) test.Prepare(t, config.Conf)
} }
func TestAssistant_LoadPath(t *testing.T) { func TestLoad_LoadPath(t *testing.T) {
prepare(t) prepare(t)
defer test.Clean() defer test.Clean()
@ -37,7 +37,7 @@ func TestAssistant_LoadPath(t *testing.T) {
assert.Error(t, err) assert.Error(t, err)
} }
func TestAssistant_LoadStore(t *testing.T) { func TestLoad_LoadStore(t *testing.T) {
prepare(t) prepare(t)
defer test.Clean() defer test.Clean()
@ -79,7 +79,7 @@ func TestAssistant_LoadStore(t *testing.T) {
assert.Error(t, err) assert.Error(t, err)
} }
func TestAssistant_Cache(t *testing.T) { func TestLoad_Cache(t *testing.T) {
prepare(t) prepare(t)
defer test.Clean() defer test.Clean()
@ -127,7 +127,7 @@ func TestAssistant_Cache(t *testing.T) {
assert.NotNil(t, loaded) assert.NotNil(t, loaded)
} }
func TestAssistant_Validate(t *testing.T) { func TestLoad_Validate(t *testing.T) {
tests := []struct { tests := []struct {
name string name string
ast *Assistant 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 // Create a test assistant with all fields populated
original := &Assistant{ original := &Assistant{
ID: "test-id", ID: "test-id",
@ -233,7 +233,7 @@ func TestAssistant_Clone(t *testing.T) {
assert.Nil(t, nilAssistant.Clone()) assert.Nil(t, nilAssistant.Clone())
} }
func TestAssistant_Update(t *testing.T) { func TestLoad_Update(t *testing.T) {
// Create a test assistant // Create a test assistant
ast := &Assistant{ ast := &Assistant{
ID: "test-id", ID: "test-id",