@@ -352,7 +352,7 @@ func Test_IssueRead_IFC_InsidersMode(t *testing.T) {
352352 require .NotNil (t , result .Meta )
353353 ifcMap := unmarshalIFC (t , result .Meta ["ifc" ])
354354 assert .Equal (t , "untrusted" , ifcMap ["integrity" ])
355- assert .Equal (t , [] any { "public" } , ifcMap ["confidentiality" ])
355+ assert .Equal (t , "public" , ifcMap ["confidentiality" ])
356356 })
357357
358358 t .Run ("insiders mode enabled on private repo with get_comments emits private untrusted" , func (t * testing.T ) {
@@ -370,7 +370,7 @@ func Test_IssueRead_IFC_InsidersMode(t *testing.T) {
370370 require .NotNil (t , result .Meta )
371371 ifcMap := unmarshalIFC (t , result .Meta ["ifc" ])
372372 assert .Equal (t , "untrusted" , ifcMap ["integrity" ])
373- assert .Equal (t , [] any { "private" } , ifcMap ["confidentiality" ])
373+ assert .Equal (t , "private" , ifcMap ["confidentiality" ])
374374 })
375375
376376 t .Run ("insiders mode skips ifc label when visibility lookup fails" , func (t * testing.T ) {
@@ -896,7 +896,7 @@ func Test_SearchIssues_IFC_InsidersMode(t *testing.T) {
896896 require .NotNil (t , result .Meta )
897897 ifcMap := unmarshalIFC (t , result .Meta ["ifc" ])
898898 assert .Equal (t , "untrusted" , ifcMap ["integrity" ])
899- assert .Equal (t , [] any { "public" } , ifcMap ["confidentiality" ])
899+ assert .Equal (t , "public" , ifcMap ["confidentiality" ])
900900 })
901901
902902 t .Run ("insiders mode mixed public and private emits private untrusted" , func (t * testing.T ) {
@@ -921,7 +921,7 @@ func Test_SearchIssues_IFC_InsidersMode(t *testing.T) {
921921 require .NotNil (t , result .Meta )
922922 ifcMap := unmarshalIFC (t , result .Meta ["ifc" ])
923923 assert .Equal (t , "untrusted" , ifcMap ["integrity" ])
924- assert .Equal (t , [] any { "private" } , ifcMap ["confidentiality" ])
924+ assert .Equal (t , "private" , ifcMap ["confidentiality" ])
925925 })
926926
927927 t .Run ("insiders mode skips ifc label when visibility lookup fails" , func (t * testing.T ) {
@@ -961,7 +961,7 @@ func Test_SearchIssues_IFC_InsidersMode(t *testing.T) {
961961 require .NotNil (t , result .Meta )
962962 ifcMap := unmarshalIFC (t , result .Meta ["ifc" ])
963963 assert .Equal (t , "untrusted" , ifcMap ["integrity" ])
964- assert .Equal (t , [] any { "public" } , ifcMap ["confidentiality" ])
964+ assert .Equal (t , "public" , ifcMap ["confidentiality" ])
965965 })
966966}
967967
@@ -1729,10 +1729,7 @@ func Test_ListIssues_IFC_InsidersMode(t *testing.T) {
17291729 require .NoError (t , json .Unmarshal (ifcJSON , & ifcMap ))
17301730
17311731 assert .Equal (t , "untrusted" , ifcMap ["integrity" ])
1732- confList , ok := ifcMap ["confidentiality" ].([]any )
1733- require .True (t , ok , "confidentiality should be a list" )
1734- require .Len (t , confList , 1 )
1735- assert .Equal (t , "public" , confList [0 ])
1732+ assert .Equal (t , "public" , ifcMap ["confidentiality" ])
17361733 })
17371734
17381735 t .Run ("insiders mode enabled on private repo emits private untrusted label" , func (t * testing.T ) {
@@ -1759,9 +1756,7 @@ func Test_ListIssues_IFC_InsidersMode(t *testing.T) {
17591756 require .NoError (t , json .Unmarshal (ifcJSON , & ifcMap ))
17601757
17611758 assert .Equal (t , "untrusted" , ifcMap ["integrity" ])
1762- confList , ok := ifcMap ["confidentiality" ].([]any )
1763- require .True (t , ok , "confidentiality should be a list" )
1764- assert .Equal (t , []any {"private" }, confList )
1759+ assert .Equal (t , "private" , ifcMap ["confidentiality" ])
17651760 })
17661761}
17671762
0 commit comments