From 156a13358e682ccda98725fca4039db2e49caf7c Mon Sep 17 00:00:00 2001 From: Theresa Gresch Date: Tue, 17 Dec 2019 18:27:08 +0100 Subject: [PATCH] Add test for entity/location.go --- internal/entity/location_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 internal/entity/location_test.go diff --git a/internal/entity/location_test.go b/internal/entity/location_test.go new file mode 100644 index 000000000..24c095f0e --- /dev/null +++ b/internal/entity/location_test.go @@ -0,0 +1,13 @@ +package entity + +import ( + "github.com/stretchr/testify/assert" + "testing" +) + +func TestLocation_Label(t *testing.T) { + location := &Location{LocCategory: "restaurant", LocType: "bistro"} + result := location.Label() + + assert.Equal(t, "restaurant", result) +}