From c3c8f92074ce3d0ac17f27c3198f138997c9781a Mon Sep 17 00:00:00 2001 From: ishandhanani Date: Mon, 23 Sep 2024 15:23:54 -0700 Subject: [PATCH] test: old test --- pkg/store/workspace_test.go | 56 ++++++++++++++++++------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/pkg/store/workspace_test.go b/pkg/store/workspace_test.go index a14076b7..f0a45404 100644 --- a/pkg/store/workspace_test.go +++ b/pkg/store/workspace_test.go @@ -423,31 +423,31 @@ func TestDeleteWorkspace(t *testing.T) { //nolint:dupl // ok to have this be dup } } -func TestValidateOllamaModel(t *testing.T) { - type args struct { - model string - tag string - } - tests := []struct { - name string - args args - want bool - wantErr bool - }{ - {"empty", args{"", ""}, false, false}, - {"llama3", args{"llama3", ""}, true, false}, - {"llama3:80b", args{"llama3", "80b"}, false, false}, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - got, err := ValidateOllamaModel(tt.args.model, tt.args.tag) - if (err != nil) != tt.wantErr { - t.Errorf("ValidateOllamaModel() error = %v, wantErr %v", err, tt.wantErr) - return - } - if got != tt.want { - t.Errorf("ValidateOllamaModel() = %v, want %v", got, tt.want) - } - }) - } -} +// func TestValidateOllamaModel(t *testing.T) { +// type args struct { +// model string +// tag string +// } +// tests := []struct { +// name string +// args args +// want bool +// wantErr bool +// }{ +// {"empty", args{"", ""}, false, false}, +// {"llama3", args{"llama3", ""}, true, false}, +// {"llama3:80b", args{"llama3", "80b"}, false, false}, +// } +// for _, tt := range tests { +// t.Run(tt.name, func(t *testing.T) { +// got, err := ValidateOllamaModel(tt.args.model, tt.args.tag) +// if (err != nil) != tt.wantErr { +// t.Errorf("ValidateOllamaModel() error = %v, wantErr %v", err, tt.wantErr) +// return +// } +// if got != tt.want { +// t.Errorf("ValidateOllamaModel() = %v, want %v", got, tt.want) +// } +// }) +// } +// }