MCPcopy Create free account
hub / github.com/cli/cli / newSchemaFile

Function newSchemaFile

script/ghmock/checker.go:45–48  ·  view source on GitHub ↗
(source schemaSource, path string, data []byte)

Source from the content-addressed store, hash-verified

43}
44
45func newSchemaFile(source schemaSource, path string, data []byte) schemaFile {
46 sum := sha256.Sum256(data)
47 return schemaFile{Name: source.label, Path: path, SHA256: hex.EncodeToString(sum[:])}
48}
49
50func newChecker(progress io.Writer) *checker {
51 return &checker{progress: progress}

Callers 2

graphQLMethod · 0.85
restMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected