()
| 115 | } |
| 116 | |
| 117 | func (b Blog) TotalUpvotes() int { |
| 118 | var upvotes int |
| 119 | for _, post := range b.Posts { |
| 120 | for _, comment := range post.Comments { |
| 121 | upvotes += comment.Upvotes |
| 122 | } |
| 123 | } |
| 124 | return upvotes |
| 125 | } |
| 126 | |
| 127 | func (b Blog) TotalComments() int { |
| 128 | var comments int |
nothing calls this directly
no outgoing calls
no test coverage detected