MCPcopy Create free account
hub / github.com/DNAProject/DNA / ExpectEOF

Method ExpectEOF

core/program/program.go:174–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

172}
173
174func (self *programParser) ExpectEOF() error {
175 if self.source.Len() != 0 {
176 return fmt.Errorf("expected eof, but remains %d bytes", self.source.Len())
177 }
178 return nil
179}
180
181func (self *programParser) IsEOF() bool {
182 return self.source.Len() == 0

Callers 1

GetProgramInfoFunction · 0.95

Calls 2

ErrorfMethod · 0.80
LenMethod · 0.45

Tested by

no test coverage detected