ffc-pay-schemes 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/README.md +13 -7
  2. package/app/get-scheme-id-from-source-system.js +10 -0
  3. package/app/get-scheme-ids.js +9 -0
  4. package/app/{get-scheme-name.js → get-scheme-name-from-scheme-id.js} +2 -2
  5. package/app/get-scheme-names.js +9 -0
  6. package/app/{get-source-system.js → get-source-system-from-scheme-id.js} +2 -2
  7. package/app/get-source-systems.js +9 -0
  8. package/index.js +13 -7
  9. package/package.json +1 -1
  10. package/test/unit/get-scheme-id-from-source-system.test.js +50 -0
  11. package/test/unit/get-scheme-ids.test.js +8 -0
  12. package/test/unit/{get-scheme-name.test.js → get-scheme-name-from-scheme-id.test.js} +6 -6
  13. package/test/unit/get-scheme-names.test.js +8 -0
  14. package/test/unit/{get-source-system.test.js → get-source-system-from-scheme-id.test.js} +6 -6
  15. package/test/unit/get-source-systems.test.js +8 -0
  16. package/test-output/cobertura-coverage.xml +120 -8
  17. package/test-output/junit.xml +304 -262
  18. package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/ap.js.html +1 -1
  19. package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/ar-admin.js.html +1 -1
  20. package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/ar-irregular.js.html +1 -1
  21. package/test-output/lcov-report/ffc-pay-schemes/app/constants/account-codes/index.html +1 -1
  22. package/test-output/lcov-report/ffc-pay-schemes/app/constants/delivery-bodies.js.html +1 -1
  23. package/test-output/lcov-report/ffc-pay-schemes/app/constants/description-codes.js.html +1 -1
  24. package/test-output/lcov-report/ffc-pay-schemes/app/constants/fund-codes.js.html +1 -1
  25. package/test-output/lcov-report/ffc-pay-schemes/app/constants/index.html +1 -1
  26. package/test-output/lcov-report/ffc-pay-schemes/app/constants/pillars.js.html +1 -1
  27. package/test-output/lcov-report/ffc-pay-schemes/app/constants/scheme-batch-properties.js.html +1 -1
  28. package/test-output/lcov-report/ffc-pay-schemes/app/constants/scheme-ids.js.html +2 -2
  29. package/test-output/lcov-report/ffc-pay-schemes/app/constants/scheme-names.js.html +2 -2
  30. package/test-output/lcov-report/ffc-pay-schemes/app/constants/schemes-not-requiring-ppas.js.html +1 -1
  31. package/test-output/lcov-report/ffc-pay-schemes/app/constants/schemes-providing-account-values.js.html +1 -1
  32. package/test-output/lcov-report/ffc-pay-schemes/app/constants/schemes.js.html +1 -1
  33. package/test-output/lcov-report/ffc-pay-schemes/app/constants/source-systems.js.html +2 -2
  34. package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-default-invoice-number.js.html +1 -1
  35. package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-es-invoice-number.js.html +1 -1
  36. package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-imps-invoice-number.js.html +1 -1
  37. package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-siti-agri-invoice-number.js.html +1 -1
  38. package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/create-standard-scheme-invoice-number.js.html +1 -1
  39. package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/index.html +1 -1
  40. package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/index.js.html +1 -1
  41. package/test-output/lcov-report/ffc-pay-schemes/app/create-invoice-number/use-invoice-number-as-is.js.html +1 -1
  42. package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/create-default-invoice-number.js.html +1 -1
  43. package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/create-siti-agri-invoice-number.js.html +1 -1
  44. package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/index.html +1 -1
  45. package/test-output/lcov-report/ffc-pay-schemes/app/create-split-invoice-number/index.js.html +1 -1
  46. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/bps-map.js.html +1 -1
  47. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/cohtc-map.js.html +1 -1
  48. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/cs-map.js.html +1 -1
  49. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/default-map.js.html +1 -1
  50. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/delinked-map.js.html +1 -1
  51. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/index.html +1 -1
  52. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/index.js.html +1 -1
  53. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/lump-sums-map.js.html +1 -1
  54. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/sfi-frps-map.js.html +1 -1
  55. package/test-output/lcov-report/ffc-pay-schemes/app/get-account-code-map/vet-visits-map.js.html +1 -1
  56. package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-batch-properties.js.html +1 -1
  57. package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-id-from-source-system.js.html +115 -0
  58. package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-ids.js.html +112 -0
  59. package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-name-from-scheme-id.js.html +115 -0
  60. package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-name.js.html +1 -1
  61. package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-names.js.html +112 -0
  62. package/test-output/lcov-report/ffc-pay-schemes/app/get-scheme-properties.js.html +1 -1
  63. package/test-output/lcov-report/ffc-pay-schemes/app/get-schemes.js.html +5 -5
  64. package/test-output/lcov-report/ffc-pay-schemes/app/get-source-system-from-scheme-id.js.html +115 -0
  65. package/test-output/lcov-report/ffc-pay-schemes/app/get-source-systems.js.html +112 -0
  66. package/test-output/lcov-report/ffc-pay-schemes/app/index.html +94 -4
  67. package/test-output/lcov-report/ffc-pay-schemes/app/scheme-does-not-require-ppas.js.html +1 -1
  68. package/test-output/lcov-report/ffc-pay-schemes/app/scheme-provides-accounting-values.js.html +1 -1
  69. package/test-output/lcov-report/ffc-pay-schemes/index.html +5 -5
  70. package/test-output/lcov-report/ffc-pay-schemes/index.js.html +29 -11
  71. package/test-output/lcov-report/index.html +11 -11
  72. package/test-output/lcov.info +112 -9
package/README.md CHANGED
@@ -18,13 +18,16 @@ const {
18
18
  createSplitInvoiceNumber,
19
19
  getAccountCodeMap,
20
20
  getSchemeBatchProperties,
21
- getSchemeName,
21
+ getSchemeIdFromSourceSystem,
22
+ getSchemeIds,
23
+ getSchemeNameFromSchemeId,
24
+ getSchemeNames,
22
25
  getSchemeProperties,
23
26
  getSchemes,
24
- getSourceSystem,
27
+ getSourceSystemFromSchemeId,
28
+ getSourceSystems,
25
29
  schemeDoesNotRequirePPAs,
26
- schemeProvidesAccountingValues,
27
- schemeIds
30
+ schemeProvidesAccountingValues
28
31
  } = require('ffc-pay-schemes')
29
32
  ```
30
33
 
@@ -32,13 +35,16 @@ const {
32
35
  - `createSplitInvoiceNumber(paymentRequest)` creates a split invoice number for a given `paymentRequest`.
33
36
  - `getAccountCodeMap(schemeId)` returns the account code mapping used for a given `schemeId`.
34
37
  - `getSchemeBatchProperties(schemeId)` returns the batch processing properties for a given `schemeId`.
35
- - `getSchemeName(schemeId)` returns the scheme name for a given `schemeId`.
38
+ - `getSchemeIdFromSourceSystem(sourceSystem)` returns the scheme ID for a given `sourceSystem`.
39
+ - `getSchemeIds()` returns all supported scheme IDs.
40
+ - `getSchemeNameFromSchemeId(schemeId)` returns the scheme name for a given `schemeId`.
41
+ - `getSchemeNames()` returns all supported scheme names.
36
42
  - `getSchemeProperties(schemeId, sourceSystem, pillar)` returns the default payment properties for a scheme. A scheme can be identified by its ID or source system. The optional `pillar` can be used for manual payments.
37
43
  - `getSchemes()` returns all supported schemes as an array of objects containing `schemeId`, `schemeName` and `sourceSystem`.
38
- - `getSourceSystem(schemeId)` returns the source system name for a given `schemeId`.
44
+ - `getSourceSystemFromSchemeId(schemeId)` returns the source system name for a given `schemeId`.
45
+ - `getSourceSystems()` returns all supported source systems.
39
46
  - `schemeDoesNotRequirePPAs(schemeId)` returns `true` if Payment Hub does not support Post Payment Adjustments (PPAs) for a given `schemeId`; otherwise, it returns `false`.
40
47
  - `schemeProvidesAccountingValues(schemeId)` returns `true` if a given `schemeId` provides accounting values within its payment requests; otherwise, it returns `false`.
41
- - `schemeIds` provides the constants for all supported scheme IDs.
42
48
 
43
49
  ### Examples
44
50
 
@@ -0,0 +1,10 @@
1
+ const { getSchemes } = require('./get-schemes')
2
+
3
+ const getSchemeIdFromSourceSystem = (sourceSystem) => {
4
+ const matchingScheme = getSchemes().find((scheme) => scheme.sourceSystem === sourceSystem)
5
+ return matchingScheme?.schemeId
6
+ }
7
+
8
+ module.exports = {
9
+ getSchemeIdFromSourceSystem
10
+ }
@@ -0,0 +1,9 @@
1
+ const schemeIds = require('./constants/scheme-ids')
2
+
3
+ const getSchemeIds = () => {
4
+ return schemeIds
5
+ }
6
+
7
+ module.exports = {
8
+ getSchemeIds
9
+ }
@@ -1,10 +1,10 @@
1
1
  const { getSchemes } = require('./get-schemes')
2
2
 
3
- const getSchemeName = (schemeId) => {
3
+ const getSchemeNameFromSchemeId = (schemeId) => {
4
4
  const matchingScheme = getSchemes().find((scheme) => scheme.schemeId === schemeId)
5
5
  return matchingScheme?.schemeName
6
6
  }
7
7
 
8
8
  module.exports = {
9
- getSchemeName
9
+ getSchemeNameFromSchemeId
10
10
  }
@@ -0,0 +1,9 @@
1
+ const schemeNames = require('./constants/scheme-names')
2
+
3
+ const getSchemeNames = () => {
4
+ return schemeNames
5
+ }
6
+
7
+ module.exports = {
8
+ getSchemeNames
9
+ }
@@ -1,10 +1,10 @@
1
1
  const { getSchemes } = require('./get-schemes')
2
2
 
3
- const getSourceSystem = (schemeId) => {
3
+ const getSourceSystemFromSchemeId = (schemeId) => {
4
4
  const matchingScheme = getSchemes().find((scheme) => scheme.schemeId === schemeId)
5
5
  return matchingScheme?.sourceSystem
6
6
  }
7
7
 
8
8
  module.exports = {
9
- getSourceSystem
9
+ getSourceSystemFromSchemeId
10
10
  }
@@ -0,0 +1,9 @@
1
+ const sourceSystems = require('./constants/source-systems')
2
+
3
+ const getSourceSystems = () => {
4
+ return sourceSystems
5
+ }
6
+
7
+ module.exports = {
8
+ getSourceSystems
9
+ }
package/index.js CHANGED
@@ -2,24 +2,30 @@ const { createInvoiceNumber } = require('./app/create-invoice-number')
2
2
  const { createSplitInvoiceNumber } = require('./app/create-split-invoice-number')
3
3
  const { getAccountCodeMap } = require('./app/get-account-code-map')
4
4
  const { getSchemeBatchProperties } = require('./app/get-scheme-batch-properties')
5
- const { getSchemeName } = require('./app/get-scheme-name')
5
+ const { getSchemeIdFromSourceSystem } = require('./app/get-scheme-id-from-source-system')
6
+ const { getSchemeIds } = require('./app/get-scheme-ids')
7
+ const { getSchemeNameFromSchemeId } = require('./app/get-scheme-name-from-scheme-id')
8
+ const { getSchemeNames } = require('./app/get-scheme-names')
6
9
  const { getSchemeProperties } = require('./app/get-scheme-properties')
7
10
  const { getSchemes } = require('./app/get-schemes')
8
- const { getSourceSystem } = require('./app/get-source-system')
11
+ const { getSourceSystemFromSchemeId } = require('./app/get-source-system-from-scheme-id')
12
+ const { getSourceSystems } = require('./app/get-source-systems')
9
13
  const { schemeDoesNotRequirePPAs } = require('./app/scheme-does-not-require-ppas')
10
14
  const { schemeProvidesAccountingValues } = require('./app/scheme-provides-accounting-values')
11
- const schemeIds = require('./app/constants/scheme-ids')
12
15
 
13
16
  module.exports = {
14
17
  createInvoiceNumber,
15
18
  createSplitInvoiceNumber,
16
19
  getAccountCodeMap,
17
20
  getSchemeBatchProperties,
18
- getSchemeName,
21
+ getSchemeIdFromSourceSystem,
22
+ getSchemeIds,
23
+ getSchemeNameFromSchemeId,
24
+ getSchemeNames,
19
25
  getSchemeProperties,
20
26
  getSchemes,
21
- getSourceSystem,
27
+ getSourceSystemFromSchemeId,
28
+ getSourceSystems,
22
29
  schemeDoesNotRequirePPAs,
23
- schemeProvidesAccountingValues,
24
- schemeIds
30
+ schemeProvidesAccountingValues
25
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ffc-pay-schemes",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Module for defining and providing details for the payment schemes supported by the Payment Hub.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,50 @@
1
+ jest.mock('../../app/get-schemes', () => ({
2
+ getSchemes: jest.fn()
3
+ }))
4
+
5
+ const { getSchemes } = require('../../app/get-schemes')
6
+ const { getSchemeIdFromSourceSystem } = require('../../app/get-scheme-id-from-source-system')
7
+
8
+ describe('getSchemeIdFromSourceSystem', () => {
9
+ beforeEach(() => {
10
+ jest.clearAllMocks()
11
+ })
12
+
13
+ test('returns the schemeId for a matching source system', () => {
14
+ getSchemes.mockReturnValue([
15
+ {
16
+ schemeId: 1,
17
+ schemeName: 'Example Scheme',
18
+ sourceSystem: 'Example Source'
19
+ }
20
+ ])
21
+
22
+ expect(getSchemeIdFromSourceSystem('Example Source')).toBe(1)
23
+ })
24
+
25
+ test('returns undefined when the source system is not found', () => {
26
+ getSchemes.mockReturnValue([
27
+ {
28
+ schemeId: 1,
29
+ schemeName: 'Example Scheme',
30
+ sourceSystem: 'Example Source'
31
+ }
32
+ ])
33
+
34
+ expect(getSchemeIdFromSourceSystem('Not a real source')).toBeUndefined()
35
+ })
36
+
37
+ test('returns undefined when no schemes are available', () => {
38
+ getSchemes.mockReturnValue([])
39
+
40
+ expect(getSchemeIdFromSourceSystem('Not a real source')).toBeUndefined()
41
+ })
42
+
43
+ test('gets schemes before searching for the source system', () => {
44
+ getSchemes.mockReturnValue([])
45
+
46
+ getSchemeIdFromSourceSystem('Not a real source')
47
+
48
+ expect(getSchemes).toHaveBeenCalledTimes(1)
49
+ })
50
+ })
@@ -0,0 +1,8 @@
1
+ const { getSchemeIds } = require('../../app/get-scheme-ids')
2
+ const schemeIds = require('../../app/constants/scheme-ids')
3
+
4
+ describe('getSchemeIds', () => {
5
+ test('returns all scheme IDs', () => {
6
+ expect(getSchemeIds()).toEqual(schemeIds)
7
+ })
8
+ })
@@ -3,9 +3,9 @@ jest.mock('../../app/get-schemes', () => ({
3
3
  }))
4
4
 
5
5
  const { getSchemes } = require('../../app/get-schemes')
6
- const { getSchemeName } = require('../../app/get-scheme-name')
6
+ const { getSchemeNameFromSchemeId } = require('../../app/get-scheme-name-from-scheme-id')
7
7
 
8
- describe('getSchemeName', () => {
8
+ describe('getSchemeNameFromSchemeId', () => {
9
9
  beforeEach(() => {
10
10
  jest.clearAllMocks()
11
11
  })
@@ -19,7 +19,7 @@ describe('getSchemeName', () => {
19
19
  }
20
20
  ])
21
21
 
22
- expect(getSchemeName(1)).toBe('Example Scheme')
22
+ expect(getSchemeNameFromSchemeId(1)).toBe('Example Scheme')
23
23
  })
24
24
 
25
25
  test('returns undefined when the scheme ID is not found', () => {
@@ -31,19 +31,19 @@ describe('getSchemeName', () => {
31
31
  }
32
32
  ])
33
33
 
34
- expect(getSchemeName(2)).toBeUndefined()
34
+ expect(getSchemeNameFromSchemeId(2)).toBeUndefined()
35
35
  })
36
36
 
37
37
  test('returns undefined when no schemes are available', () => {
38
38
  getSchemes.mockReturnValue([])
39
39
 
40
- expect(getSchemeName(2)).toBeUndefined()
40
+ expect(getSchemeNameFromSchemeId(2)).toBeUndefined()
41
41
  })
42
42
 
43
43
  test('gets schemes before searching for the source system', () => {
44
44
  getSchemes.mockReturnValue([])
45
45
 
46
- getSchemeName(2)
46
+ getSchemeNameFromSchemeId(2)
47
47
 
48
48
  expect(getSchemes).toHaveBeenCalledTimes(1)
49
49
  })
@@ -0,0 +1,8 @@
1
+ const { getSchemeNames } = require('../../app/get-scheme-names')
2
+ const schemeNames = require('../../app/constants/scheme-names')
3
+
4
+ describe('getSchemeNames', () => {
5
+ test('returns all scheme names', () => {
6
+ expect(getSchemeNames()).toEqual(schemeNames)
7
+ })
8
+ })
@@ -3,9 +3,9 @@ jest.mock('../../app/get-schemes', () => ({
3
3
  }))
4
4
 
5
5
  const { getSchemes } = require('../../app/get-schemes')
6
- const { getSourceSystem } = require('../../app/get-source-system')
6
+ const { getSourceSystemFromSchemeId } = require('../../app/get-source-system-from-scheme-id')
7
7
 
8
- describe('getSourceSystem', () => {
8
+ describe('getSourceSystemFromSchemeId', () => {
9
9
  beforeEach(() => {
10
10
  jest.clearAllMocks()
11
11
  })
@@ -19,7 +19,7 @@ describe('getSourceSystem', () => {
19
19
  }
20
20
  ])
21
21
 
22
- expect(getSourceSystem(1)).toBe('Example Source')
22
+ expect(getSourceSystemFromSchemeId(1)).toBe('Example Source')
23
23
  })
24
24
 
25
25
  test('returns undefined when the scheme ID is not found', () => {
@@ -31,19 +31,19 @@ describe('getSourceSystem', () => {
31
31
  }
32
32
  ])
33
33
 
34
- expect(getSourceSystem(2)).toBeUndefined()
34
+ expect(getSourceSystemFromSchemeId(2)).toBeUndefined()
35
35
  })
36
36
 
37
37
  test('returns undefined when no schemes are available', () => {
38
38
  getSchemes.mockReturnValue([])
39
39
 
40
- expect(getSourceSystem(2)).toBeUndefined()
40
+ expect(getSourceSystemFromSchemeId(2)).toBeUndefined()
41
41
  })
42
42
 
43
43
  test('gets schemes before searching for the source system', () => {
44
44
  getSchemes.mockReturnValue([])
45
45
 
46
- getSourceSystem(2)
46
+ getSourceSystemFromSchemeId(2)
47
47
 
48
48
  expect(getSchemes).toHaveBeenCalledTimes(1)
49
49
  })
@@ -0,0 +1,8 @@
1
+ const { getSourceSystems } = require('../../app/get-source-systems')
2
+ const sourceSystems = require('../../app/constants/source-systems')
3
+
4
+ describe('getSourceSystems', () => {
5
+ test('returns all source systems', () => {
6
+ expect(getSourceSystems()).toEqual(sourceSystems)
7
+ })
8
+ })
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" ?>
2
2
  <!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
3
- <coverage lines-valid="203" lines-covered="191" line-rate="0.9408" branches-valid="50" branches-covered="50" branch-rate="1" timestamp="1787761759725" complexity="0" version="0.1">
3
+ <coverage lines-valid="234" lines-covered="219" line-rate="0.9358" branches-valid="50" branches-covered="50" branch-rate="1" timestamp="1787827130090" complexity="0" version="0.1">
4
4
  <sources>
5
5
  <source>/home/samplackett/ffc-pay-schemes</source>
6
6
  </sources>
@@ -22,7 +22,10 @@
22
22
  <line number="9" hits="0" branch="false"/>
23
23
  <line number="10" hits="0" branch="false"/>
24
24
  <line number="11" hits="0" branch="false"/>
25
+ <line number="12" hits="0" branch="false"/>
25
26
  <line number="13" hits="0" branch="false"/>
27
+ <line number="14" hits="0" branch="false"/>
28
+ <line number="16" hits="0" branch="false"/>
26
29
  </lines>
27
30
  </class>
28
31
  </classes>
@@ -49,6 +52,78 @@
49
52
  <line number="7" hits="1" branch="false"/>
50
53
  </lines>
51
54
  </class>
55
+ <class name="get-scheme-id-from-source-system.js" filename="app/get-scheme-id-from-source-system.js" line-rate="1" branch-rate="1">
56
+ <methods>
57
+ <method name="(anonymous_0)" hits="4" signature="()V">
58
+ <lines>
59
+ <line number="3" hits="4"/>
60
+ </lines>
61
+ </method>
62
+ <method name="(anonymous_1)" hits="2" signature="()V">
63
+ <lines>
64
+ <line number="4" hits="2"/>
65
+ </lines>
66
+ </method>
67
+ </methods>
68
+ <lines>
69
+ <line number="1" hits="1" branch="false"/>
70
+ <line number="3" hits="1" branch="false"/>
71
+ <line number="4" hits="4" branch="false"/>
72
+ <line number="5" hits="4" branch="false"/>
73
+ <line number="8" hits="1" branch="false"/>
74
+ </lines>
75
+ </class>
76
+ <class name="get-scheme-ids.js" filename="app/get-scheme-ids.js" line-rate="1" branch-rate="1">
77
+ <methods>
78
+ <method name="(anonymous_0)" hits="1" signature="()V">
79
+ <lines>
80
+ <line number="3" hits="1"/>
81
+ </lines>
82
+ </method>
83
+ </methods>
84
+ <lines>
85
+ <line number="1" hits="1" branch="false"/>
86
+ <line number="3" hits="1" branch="false"/>
87
+ <line number="4" hits="1" branch="false"/>
88
+ <line number="7" hits="1" branch="false"/>
89
+ </lines>
90
+ </class>
91
+ <class name="get-scheme-name-from-scheme-id.js" filename="app/get-scheme-name-from-scheme-id.js" line-rate="1" branch-rate="1">
92
+ <methods>
93
+ <method name="(anonymous_0)" hits="4" signature="()V">
94
+ <lines>
95
+ <line number="3" hits="4"/>
96
+ </lines>
97
+ </method>
98
+ <method name="(anonymous_1)" hits="2" signature="()V">
99
+ <lines>
100
+ <line number="4" hits="2"/>
101
+ </lines>
102
+ </method>
103
+ </methods>
104
+ <lines>
105
+ <line number="1" hits="1" branch="false"/>
106
+ <line number="3" hits="1" branch="false"/>
107
+ <line number="4" hits="4" branch="false"/>
108
+ <line number="5" hits="4" branch="false"/>
109
+ <line number="8" hits="1" branch="false"/>
110
+ </lines>
111
+ </class>
112
+ <class name="get-scheme-names.js" filename="app/get-scheme-names.js" line-rate="1" branch-rate="1">
113
+ <methods>
114
+ <method name="(anonymous_0)" hits="1" signature="()V">
115
+ <lines>
116
+ <line number="3" hits="1"/>
117
+ </lines>
118
+ </method>
119
+ </methods>
120
+ <lines>
121
+ <line number="1" hits="1" branch="false"/>
122
+ <line number="3" hits="1" branch="false"/>
123
+ <line number="4" hits="1" branch="false"/>
124
+ <line number="7" hits="1" branch="false"/>
125
+ </lines>
126
+ </class>
52
127
  <class name="get-scheme-properties.js" filename="app/get-scheme-properties.js" line-rate="1" branch-rate="1">
53
128
  <methods>
54
129
  <method name="(anonymous_0)" hits="54" signature="()V">
@@ -93,21 +168,58 @@
93
168
  <methods>
94
169
  <method name="(anonymous_0)" hits="18" signature="()V">
95
170
  <lines>
96
- <line number="4" hits="18"/>
171
+ <line number="5" hits="18"/>
97
172
  </lines>
98
173
  </method>
99
174
  <method name="(anonymous_1)" hits="306" signature="()V">
100
175
  <lines>
101
- <line number="5" hits="306"/>
176
+ <line number="6" hits="306"/>
102
177
  </lines>
103
178
  </method>
104
179
  </methods>
105
180
  <lines>
106
181
  <line number="1" hits="1" branch="false"/>
107
182
  <line number="2" hits="1" branch="false"/>
183
+ <line number="3" hits="1" branch="false"/>
184
+ <line number="5" hits="1" branch="false"/>
185
+ <line number="6" hits="306" branch="false"/>
186
+ <line number="12" hits="1" branch="false"/>
187
+ </lines>
188
+ </class>
189
+ <class name="get-source-system-from-scheme-id.js" filename="app/get-source-system-from-scheme-id.js" line-rate="1" branch-rate="1">
190
+ <methods>
191
+ <method name="(anonymous_0)" hits="4" signature="()V">
192
+ <lines>
193
+ <line number="3" hits="4"/>
194
+ </lines>
195
+ </method>
196
+ <method name="(anonymous_1)" hits="2" signature="()V">
197
+ <lines>
198
+ <line number="4" hits="2"/>
199
+ </lines>
200
+ </method>
201
+ </methods>
202
+ <lines>
203
+ <line number="1" hits="1" branch="false"/>
204
+ <line number="3" hits="1" branch="false"/>
205
+ <line number="4" hits="4" branch="false"/>
206
+ <line number="5" hits="4" branch="false"/>
207
+ <line number="8" hits="1" branch="false"/>
208
+ </lines>
209
+ </class>
210
+ <class name="get-source-systems.js" filename="app/get-source-systems.js" line-rate="1" branch-rate="1">
211
+ <methods>
212
+ <method name="(anonymous_0)" hits="1" signature="()V">
213
+ <lines>
214
+ <line number="3" hits="1"/>
215
+ </lines>
216
+ </method>
217
+ </methods>
218
+ <lines>
219
+ <line number="1" hits="1" branch="false"/>
220
+ <line number="3" hits="1" branch="false"/>
108
221
  <line number="4" hits="1" branch="false"/>
109
- <line number="5" hits="306" branch="false"/>
110
- <line number="10" hits="1" branch="false"/>
222
+ <line number="7" hits="1" branch="false"/>
111
223
  </lines>
112
224
  </class>
113
225
  <class name="scheme-does-not-require-ppas.js" filename="app/scheme-does-not-require-ppas.js" line-rate="1" branch-rate="1">
@@ -184,14 +296,14 @@
184
296
  <methods>
185
297
  </methods>
186
298
  <lines>
187
- <line number="1" hits="8" branch="false"/>
299
+ <line number="1" hits="9" branch="false"/>
188
300
  </lines>
189
301
  </class>
190
302
  <class name="scheme-names.js" filename="app/constants/scheme-names.js" line-rate="1" branch-rate="1">
191
303
  <methods>
192
304
  </methods>
193
305
  <lines>
194
- <line number="1" hits="1" branch="false"/>
306
+ <line number="1" hits="2" branch="false"/>
195
307
  </lines>
196
308
  </class>
197
309
  <class name="schemes-not-requiring-ppas.js" filename="app/constants/schemes-not-requiring-ppas.js" line-rate="1" branch-rate="1">
@@ -226,7 +338,7 @@
226
338
  <methods>
227
339
  </methods>
228
340
  <lines>
229
- <line number="1" hits="2" branch="false"/>
341
+ <line number="1" hits="4" branch="false"/>
230
342
  </lines>
231
343
  </class>
232
344
  </classes>