MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Valid

Method Valid

page.go:238–253  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236}
237
238func (page *Page) Valid() bool {
239
240 // Root page
241 if page == page.Project.Pages[0] {
242 return true
243 }
244
245 // Deleted page or orphan
246 if page.PointingSubpageCard == nil || !page.PointingSubpageCard.Valid {
247 return false
248 }
249
250 // See if we have a valid path to the root
251 return page.PointingSubpageCard.Page.Valid()
252
253}
254
255func (page *Page) Name() string {
256 if page.PointingSubpageCard != nil {

Callers 8

handleScreenshotsFunction · 0.45
IsSelectedMethod · 0.45
UpdateMethod · 0.45
SaveMethod · 0.45
UpdateMethod · 0.45
DrawMethod · 0.45
RowsMethod · 0.45
ConstructMenusFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected