MCPcopy Create free account
hub / github.com/ExtropyIO/SolanaBootcamp / looks_done

Method looks_done

homeworks_rust/src/exercise.rs:246–248  ·  view source on GitHub ↗

Check that the exercise looks to be solved using self.state() This is not the best way to check since the user can just remove the "I AM NOT DONE" string from the file without actually having solved anything. The only other way to truly check this would to compile and run the exercise; which would be both costly and counterintuitive

(&self)

Source from the content-addressed store, hash-verified

244 // The only other way to truly check this would to compile and run
245 // the exercise; which would be both costly and counterintuitive
246 pub fn looks_done(&self) -> bool {
247 self.state() == State::Done
248 }
249}
250
251impl Display for Exercise {

Callers 2

find_exerciseFunction · 0.80
homeworkFunction · 0.80

Calls 1

stateMethod · 0.80

Tested by

no test coverage detected