File tree Expand file tree Collapse file tree 5 files changed +10
-1
lines changed
Expand file tree Collapse file tree 5 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ export class X509Certificate {
143143 const ca = this . extBasicConstraints ?. isCA || false ;
144144
145145 // If the KeyUsage extension is present, keyCertSign must be set
146+ /* istanbul ignore else */
146147 if ( this . extKeyUsage ) {
147148 return ca && this . extKeyUsage . keyCertSign ;
148149 }
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ export class OCIImage {
6262 } ;
6363
6464 try {
65+ /* istanbul ignore else */
6566 if ( this . #credentials) {
6667 await this . #client. signIn ( this . #credentials) ;
6768 }
@@ -127,6 +128,7 @@ export class OCIImage {
127128
128129 async getDigest ( tag : string ) : Promise < string > {
129130 try {
131+ /* istanbul ignore else */
130132 if ( this . #credentials) {
131133 await this . #client. signIn ( this . #credentials) ;
132134 }
@@ -175,6 +177,7 @@ export class OCIImage {
175177
176178 // If the artifact is not already in the index, add it to the list and
177179 // re-upload the index
180+ /* istanbul ignore else */
178181 if (
179182 ! referrerManifest . manifests . some (
180183 ( manifest ) => manifest . digest === opts . artifact . digest
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ function initTufCache(cachePath: string): void {
9797 fs . mkdirSync ( cachePath , { recursive : true } ) ;
9898 }
9999
100+ /* istanbul ignore else */
100101 if ( ! fs . existsSync ( targetsPath ) ) {
101102 fs . mkdirSync ( targetsPath ) ;
102103 }
@@ -120,10 +121,11 @@ function seedCache({
120121
121122 // If the root.json file does not exist (or we're forcing re-initialization),
122123 // populate it either from the supplied rootPath or from one of the repo seeds.
124+ /* istanbul ignore else */
123125 if ( ! fs . existsSync ( cachedRootPath ) || forceInit ) {
124126 if ( tufRootPath ) {
125127 fs . copyFileSync ( tufRootPath , cachedRootPath ) ;
126- } else {
128+ } else {
127129 const seeds : RepoSeeds = require ( '../seeds.json' ) ;
128130 const repoSeed = seeds [ mirrorURL ] ;
129131
Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ export class CertificateChainVerifier {
184184 // or issuer/subject. Potential issuers are added to the result array.
185185 this . localCerts . forEach ( ( possibleIssuer ) => {
186186 if ( keyIdentifier ) {
187+ /* istanbul ignore else */
187188 if ( possibleIssuer . extSubjectKeyID ) {
188189 if (
189190 possibleIssuer . extSubjectKeyID . keyIdentifier . equals ( keyIdentifier )
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ export class Verifier {
162162 identity : CertificateIdentity
163163 ) {
164164 // Check the subject alternative name of the signer matches the policy
165+ /* istanbul ignore else */
165166 if ( policy . subjectAlternativeName ) {
166167 verifySubjectAlternativeName (
167168 policy . subjectAlternativeName ,
@@ -170,6 +171,7 @@ export class Verifier {
170171 }
171172
172173 // Check that the extensions of the signer match the policy
174+ /* istanbul ignore else */
173175 if ( policy . extensions ) {
174176 verifyExtensions ( policy . extensions , identity . extensions ) ;
175177 }
You can’t perform that action at this time.
0 commit comments