Skip to content

Commit

Permalink
unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daithihearn committed Dec 9, 2023
1 parent 69cc77e commit 3bdbfe1
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 424 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ docs: #@ Generate docs
.PHONY:docs
test: fmt vet #@ Run tests
go test -coverprofile=coverage.out ./...
grep -v "_mocks.go" coverage.out > filtered_coverage.out
go tool cover -html=filtered_coverage.out -o coverage.html

go tool cover -html=coverage.out -o coverage.html
.PHONY:test
fmt: #@ Format the code
go fmt ./...
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// @title Electricity Prices API
// @version 2.1.19
// @version 2.1.20
// @description Returns PVPC electricity prices for a given range
// @BasePath /api/v1
package main
Expand Down
3 changes: 3 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
codecov:
ignore:
- "*/**/*_mocks.go"
2 changes: 1 addition & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ const docTemplate = `{

// SwaggerInfo holds exported Swagger Info so clients can modify it
var SwaggerInfo = &swag.Spec{
Version: "2.1.19",
Version: "2.1.20",
Host: "",
BasePath: "/api/v1",
Schemes: []string{},
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Returns PVPC electricity prices for a given range",
"title": "Electricity Prices API",
"contact": {},
"version": "2.1.19"
"version": "2.1.20"
},
"basePath": "/api/v1",
"paths": {
Expand Down
2 changes: 1 addition & 1 deletion docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ info:
contact: {}
description: Returns PVPC electricity prices for a given range
title: Electricity Prices API
version: 2.1.19
version: 2.1.20
paths:
/alexa:
get:
Expand Down
417 changes: 0 additions & 417 deletions filtered_coverage.out

This file was deleted.

0 comments on commit 3bdbfe1

Please sign in to comment.