Skip to content

Commit

Permalink
test: remove invalid test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Jun 25, 2024
1 parent fd40840 commit 70cf34c
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions test/resolve/adapters/defaultSourceAdapter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { META_XML_SUFFIX } from '../../../src/common';

describe('DefaultSourceAdapter', () => {
it('should return a SourceComponent when given a metadata xml file', () => {
const type = registry.types.apexclass;
const type = registry.types.eventdelivery;
const path = join('path', 'to', type.directoryName, `My_Test.${type.suffix}${META_XML_SUFFIX}`);
const adapter = new DefaultSourceAdapter(type);
expect(adapter.getComponent(path)).to.deep.equal(
Expand All @@ -23,17 +23,4 @@ describe('DefaultSourceAdapter', () => {
})
);
});

it('should return a SourceComponent when given a content-only metadata file', () => {
const type = registry.types.apexclass;
const path = join('path', 'to', type.directoryName, `My_Test.${type.suffix}`);
const adapter = new DefaultSourceAdapter(type);
expect(adapter.getComponent(path)).to.deep.equal(
new SourceComponent({
name: 'My_Test',
type,
xml: path,
})
);
});
});

2 comments on commit 70cf34c

@svc-cli-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 70cf34c Previous: 63ce40e Ratio
eda-componentSetCreate-linux 179 ms 192 ms 0.93
eda-sourceToMdapi-linux 1959 ms 1963 ms 1.00
eda-sourceToZip-linux 1785 ms 1795 ms 0.99
eda-mdapiToSource-linux 3002 ms 2761 ms 1.09
lotsOfClasses-componentSetCreate-linux 475 ms 360 ms 1.32
lotsOfClasses-sourceToMdapi-linux 3670 ms 3746 ms 0.98
lotsOfClasses-sourceToZip-linux 2984 ms 2997 ms 1.00
lotsOfClasses-mdapiToSource-linux 3433 ms 3495 ms 0.98
lotsOfClassesOneDir-componentSetCreate-linux 605 ms 621 ms 0.97
lotsOfClassesOneDir-sourceToMdapi-linux 6439 ms 6528 ms 0.99
lotsOfClassesOneDir-sourceToZip-linux 5564 ms 5530 ms 1.01
lotsOfClassesOneDir-mdapiToSource-linux 6203 ms 6397 ms 0.97

This comment was automatically generated by workflow using github-action-benchmark.

@svc-cli-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 70cf34c Previous: 63ce40e Ratio
eda-componentSetCreate-win32 415 ms 378 ms 1.10
eda-sourceToMdapi-win32 3843 ms 3434 ms 1.12
eda-sourceToZip-win32 2962 ms 2668 ms 1.11
eda-mdapiToSource-win32 6236 ms 5561 ms 1.12
lotsOfClasses-componentSetCreate-win32 964 ms 888 ms 1.09
lotsOfClasses-sourceToMdapi-win32 8220 ms 7431 ms 1.11
lotsOfClasses-sourceToZip-win32 5261 ms 4684 ms 1.12
lotsOfClasses-mdapiToSource-win32 8461 ms 7436 ms 1.14
lotsOfClassesOneDir-componentSetCreate-win32 1697 ms 1473 ms 1.15
lotsOfClassesOneDir-sourceToMdapi-win32 14957 ms 13373 ms 1.12
lotsOfClassesOneDir-sourceToZip-win32 9130 ms 8636 ms 1.06
lotsOfClassesOneDir-mdapiToSource-win32 13583 ms 13372 ms 1.02

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.