Skip to content

Commit 0e43759

Browse files
CopilotmonkeyWie
andcommitted
Fix: Add Script field to DownloaderStoreConfig tests
Co-authored-by: monkeyWie <13160176+monkeyWie@users.noreply.github.com>
1 parent 9ed4a2c commit 0e43759

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

pkg/base/model_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ func TestDownloaderStoreConfig_Init(t *testing.T) {
1919
ProtocolConfig: map[string]any{},
2020
Proxy: &DownloaderProxyConfig{},
2121
Webhook: &WebhookConfig{},
22+
Script: &ScriptConfig{},
2223
AutoTorrent: &AutoTorrentConfig{
2324
Enable: false,
2425
DeleteAfterDownload: false,
@@ -39,6 +40,7 @@ func TestDownloaderStoreConfig_Init(t *testing.T) {
3940
ProtocolConfig: map[string]any{},
4041
Proxy: &DownloaderProxyConfig{},
4142
Webhook: &WebhookConfig{},
43+
Script: &ScriptConfig{},
4244
AutoTorrent: &AutoTorrentConfig{
4345
Enable: false,
4446
DeleteAfterDownload: false,
@@ -63,6 +65,7 @@ func TestDownloaderStoreConfig_Init(t *testing.T) {
6365
},
6466
Proxy: &DownloaderProxyConfig{},
6567
Webhook: &WebhookConfig{},
68+
Script: &ScriptConfig{},
6669
AutoTorrent: &AutoTorrentConfig{
6770
Enable: false,
6871
DeleteAfterDownload: false,
@@ -87,6 +90,7 @@ func TestDownloaderStoreConfig_Init(t *testing.T) {
8790
Enable: true,
8891
},
8992
Webhook: &WebhookConfig{},
93+
Script: &ScriptConfig{},
9094
AutoTorrent: &AutoTorrentConfig{
9195
Enable: false,
9296
DeleteAfterDownload: false,
@@ -110,6 +114,7 @@ func TestDownloaderStoreConfig_Init(t *testing.T) {
110114
ProtocolConfig: map[string]any{},
111115
Proxy: &DownloaderProxyConfig{},
112116
Webhook: &WebhookConfig{},
117+
Script: &ScriptConfig{},
113118
AutoTorrent: &AutoTorrentConfig{
114119
Enable: true,
115120
DeleteAfterDownload: true,
@@ -133,6 +138,7 @@ func TestDownloaderStoreConfig_Init(t *testing.T) {
133138
ProtocolConfig: map[string]any{},
134139
Proxy: &DownloaderProxyConfig{},
135140
Webhook: &WebhookConfig{},
141+
Script: &ScriptConfig{},
136142
AutoTorrent: &AutoTorrentConfig{
137143
Enable: false,
138144
DeleteAfterDownload: false,
@@ -154,6 +160,7 @@ func TestDownloaderStoreConfig_Init(t *testing.T) {
154160
Extra: tt.fields.Extra,
155161
Proxy: tt.fields.Proxy,
156162
Webhook: tt.fields.Webhook,
163+
Script: tt.fields.Script,
157164
AutoTorrent: tt.fields.AutoTorrent,
158165
Archive: tt.fields.Archive,
159166
}

0 commit comments

Comments
 (0)