MCPcopy Index your code
hub / github.com/postcss/postcss / checkOffset

Function checkOffset

test/location.test.ts:13–17  ·  view source on GitHub ↗
(source: string, node: Node, expected: string)

Source from the content-addressed store, hash-verified

11} from '../lib/postcss.js'
12
13function checkOffset(source: string, node: Node, expected: string): void {
14 let start = node.source!.start!.offset
15 let end = node.source!.end!.offset
16 equal(source.slice(start, end), expected)
17}
18
19test('root', () => {
20 let source = '.a{}'

Callers 1

location.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…