add methods for getting stocks and products reports, make tests run parallel

This commit is contained in:
diPhantxm
2023-03-17 21:14:31 +03:00
parent 0a3eaddf22
commit cf9eae4bef
12 changed files with 231 additions and 3 deletions

View File

@@ -8,6 +8,8 @@ import (
)
func TestReportOnSoldProducts(t *testing.T) {
t.Parallel()
tests := []struct {
statusCode int
headers map[string]string
@@ -106,6 +108,8 @@ func TestReportOnSoldProducts(t *testing.T) {
}
func TestGetTotalTransactionsSum(t *testing.T) {
t.Parallel()
tests := []struct {
statusCode int
headers map[string]string