()
| 125 | } |
| 126 | |
| 127 | func (b Blog) TotalComments() int { |
| 128 | var comments int |
| 129 | for _, post := range b.Posts { |
| 130 | comments += len(post.Comments) |
| 131 | } |
| 132 | return comments |
| 133 | } |
| 134 | |
| 135 | func (Blog) Add(a, b float64) float64 { |
| 136 | return a + b |
nothing calls this directly
no outgoing calls
no test coverage detected