MCPcopy Index your code
hub / github.com/angular/angular-cli / _entry

Function _entry

packages/angular_devkit/schematics/src/rules/template_spec.ts:26–38  ·  view source on GitHub ↗
(path?: string, content?: string)

Source from the content-addressed store, hash-verified

24} from './template';
25
26function _entry(path?: string, content?: string): FileEntry {
27 if (!path) {
28 path = 'a/b/c';
29 }
30 if (!content) {
31 content = 'hello world';
32 }
33
34 return {
35 path: normalize(path),
36 content: Buffer.from(content),
37 };
38}
39
40describe('applyPathTemplate', () => {
41 function _applyPathTemplate(path: string, options: {}): string | null {

Callers 2

_applyPathTemplateFunction · 0.85
_applyContentTemplateFunction · 0.85

Calls 2

normalizeFunction · 0.90
fromMethod · 0.80

Tested by

no test coverage detected