()
| 397 | } |
| 398 | |
| 399 | func (cc *CheckboxContents) CompletionLevel() float32 { |
| 400 | |
| 401 | if dep := cc.DependentCards(); len(dep) > 0 { |
| 402 | comp := float32(0) |
| 403 | for _, c := range dep { |
| 404 | comp += c.CompletionLevel() |
| 405 | } |
| 406 | return comp |
| 407 | } |
| 408 | |
| 409 | if cc.Card.Properties.Get("checked").AsBool() { |
| 410 | return 1 |
| 411 | } |
| 412 | |
| 413 | return 0 |
| 414 | |
| 415 | } |
| 416 | |
| 417 | func (cc *CheckboxContents) MaximumCompletionLevel() float32 { |
| 418 |
nothing calls this directly
no test coverage detected