@@ -45,19 +45,6 @@ func TestSearchContext(t *testing.T) {
4545 },
4646 call : ctx .IsOfficial ,
4747 },
48- {
49- searchCtx : searchContext {
50- s : registrytypes.SearchResult {IsAutomated : true }, //nolint:nolintlint,staticcheck // ignore SA1019 (IsAutomated is deprecated).
51- },
52- expValue : "[OK]" ,
53- call : ctx .IsAutomated , //nolint:nolintlint,staticcheck // ignore SA1019 (IsAutomated is deprecated).
54- },
55- {
56- searchCtx : searchContext {
57- s : registrytypes.SearchResult {},
58- },
59- call : ctx .IsAutomated , //nolint:nolintlint,staticcheck // ignore SA1019 (IsAutomated is deprecated).
60- },
6148 }
6249
6350 for _ , c := range cases {
@@ -157,8 +144,8 @@ func TestSearchContextWrite(t *testing.T) {
157144 {
158145 doc : "JSON format" ,
159146 format : "{{json .}}" ,
160- expected : `{"Description":"Official build","IsAutomated":"false"," IsOfficial":"true","Name":"result1","StarCount":"5000"}
161- {"Description":"Not official","IsAutomated":"true"," IsOfficial":"false","Name":"result2","StarCount":"5"}
147+ expected : `{"Description":"Official build","IsOfficial":"true","Name":"result1","StarCount":"5000"}
148+ {"Description":"Not official","IsOfficial":"false","Name":"result2","StarCount":"5"}
162149` ,
163150 },
164151 {
@@ -199,7 +186,7 @@ result2 5
199186
200187 results := []registrytypes.SearchResult {
201188 {Name : "result1" , Description : "Official build" , StarCount : 5000 , IsOfficial : true },
202- {Name : "result2" , Description : "Not official" , StarCount : 5 , IsAutomated : true },
189+ {Name : "result2" , Description : "Not official" , StarCount : 5 },
203190 }
204191
205192 for _ , tc := range cases {
0 commit comments