• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pustart / crypto-pro-csp / 17470191047

04 Sep 2025 04:17PM UTC coverage: 79.504%. First build
17470191047

Pull #8

github

web-flow
Merge 5fe6ffb4f into c5bb2bb7e
Pull Request #8: develop 3.0.0 into master

200 of 308 branches covered (64.94%)

Branch coverage included in aggregate %.

158 of 230 new or added lines in 14 files covered. (68.7%)

537 of 619 relevant lines covered (86.75%)

10.63 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.67
/src/api/certificate/getExtendedKeyUsage.ts
1
import { _afterPluginsLoaded } from '../../helpers/_afterPluginsLoaded';
4✔
2
import { _extractMeaningfulErrorMessage } from '../../helpers/_extractMeaningfulErrorMessage';
4✔
3
import { Certificate } from './certificate';
4

5
/**
6
 * Возвращает ОИД'ы сертификата
7
 *
8
 * @returns список ОИД'ов
9
 */
10
export const getExtendedKeyUsage = _afterPluginsLoaded(function (): string[] {
4✔
11
  const { cadesplugin } = window;
2✔
12
  const cadesCertificate = (this as Certificate)._cadesCertificate;
2✔
13

14
  return cadesplugin.async_spawn(function* getExtendedKeyUsage() {
2✔
15
    const OIDS: string[] = [];
2✔
16
    let count: any;
17

18
    try {
19
      count = yield cadesCertificate.ExtendedKeyUsage();
2✔
20
      count = yield count.EKUs;
2✔
21
      count = yield count.Count;
2✔
22

23
      if (count > 0) {
2✔
24
        while (count > 0) {
4✔
25
          let cadesExtendedKeyUsage;
2✔
26

27
          cadesExtendedKeyUsage = yield cadesCertificate.ExtendedKeyUsage();
2✔
28
          cadesExtendedKeyUsage = yield cadesExtendedKeyUsage.EKUs;
2✔
29
          cadesExtendedKeyUsage = yield cadesExtendedKeyUsage.Item(count);
2✔
30
          cadesExtendedKeyUsage = yield cadesExtendedKeyUsage.OID;
2✔
31

32
          OIDS.push(cadesExtendedKeyUsage);
2✔
33

34
          count--;
2✔
35
        }
36
      }
37
    } catch (error) {
NEW
38
      console.error(error);
×
39

NEW
40
      throw new Error(_extractMeaningfulErrorMessage(error) || "Ошибка при получении ОИД'ов");
×
41
    }
42

43
    return OIDS;
2✔
44
  });
45
});
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc