MCPcopy
hub / github.com/sqlc-dev/sqlc / getLines

Function getLines

internal/cmd/cmd.go:239–247  ·  view source on GitHub ↗
(f []byte)

Source from the content-addressed store, hash-verified

237}
238
239func getLines(f []byte) []string {
240 fp := bytes.NewReader(f)
241 scanner := bufio.NewScanner(fp)
242 lines := make([]string, 0)
243 for scanner.Scan() {
244 lines = append(lines, scanner.Text())
245 }
246 return lines
247}
248
249func filterHunks[T gonp.Elem](uniHunks []gonp.UniHunk[T]) []gonp.UniHunk[T] {
250 var out []gonp.UniHunk[T]

Callers 1

DiffFunction · 0.85

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected