(tags: SnippetsLabRecord[])
| 95 | } |
| 96 | |
| 97 | function buildTagMap(tags: SnippetsLabRecord[]): Map<string, string> { |
| 98 | const map = new Map<string, string>() |
| 99 | |
| 100 | tags.forEach((tag) => { |
| 101 | const uuid = readString(tag, 'uuid') |
| 102 | const title = normalizeImportTag(readString(tag, 'title')) |
| 103 | |
| 104 | if (uuid && title) { |
| 105 | map.set(uuid, title) |
| 106 | } |
| 107 | }) |
| 108 | |
| 109 | return map |
| 110 | } |
| 111 | |
| 112 | function getTags(record: SnippetsLabRecord, tagMap: Map<string, string>) { |
| 113 | const rawTags = record.tags |
no test coverage detected