From ff7b0750ae54894deef1edaabd1cf3fc0fdedfd2 Mon Sep 17 00:00:00 2001 From: Paul Mach Date: Fri, 23 Feb 2018 16:58:40 -0800 Subject: [PATCH] make test function names consistent --- annotate/edgecases_test.go | 6 +++--- annotate/order_test.go | 4 ++-- annotate/relation_test.go | 10 +++++----- annotate/way_test.go | 2 +- changeset.go | 10 ++++++++++ changeset_test.go | 26 +++++++++++++++++++----- element_test.go | 4 ++-- feature_test.go | 2 +- internal/mputil/join_test.go | 4 ++-- internal/mputil/mputil_test.go | 4 ++-- marshal_test.go | 34 ++++++++++++++++---------------- node_test.go | 2 +- object_test.go | 6 +++--- osmgeojson/build_polygon_test.go | 12 +++++------ osmgeojson/convert_test.go | 18 ++++++++--------- osmpbf/decode_test.go | 2 +- osmpbf/scanner_test.go | 8 ++++---- osmxml/scanner_test.go | 6 +++--- relation_test.go | 2 +- way_test.go | 4 ++-- 20 files changed, 96 insertions(+), 70 deletions(-) diff --git a/annotate/edgecases_test.go b/annotate/edgecases_test.go index a112521..5f57302 100644 --- a/annotate/edgecases_test.go +++ b/annotate/edgecases_test.go @@ -8,7 +8,7 @@ import ( "github.com/paulmach/osm" ) -func TestEdgeCase_ChildCreatedAfterParent(t *testing.T) { +func TestEdgeCase_childCreatedAfterParent(t *testing.T) { // example: way 43680701, node 370250076 // way 4708608, node 29974559 // Way's first version is 4 days after node's first version. @@ -139,7 +139,7 @@ func TestEdgeCase_ChildCreatedAfterParent(t *testing.T) { }) } -func TestEdgeCase_NodeDeletedBetweenParents(t *testing.T) { +func TestEdgeCase_nodeDeletedBetweenParents(t *testing.T) { // example: node 321452894, way 28831147 nodes := osm.Nodes{ @@ -182,7 +182,7 @@ func TestEdgeCase_NodeDeletedBetweenParents(t *testing.T) { } } -func TestEdgeCase_NodeRedacted(t *testing.T) { +func TestEdgeCase_nodeRedacted(t *testing.T) { // example: way 159081205, node 376130526 // Oh the license change. Nodes have 1 non-visible version. diff --git a/annotate/order_test.go b/annotate/order_test.go index c154423..9674805 100644 --- a/annotate/order_test.go +++ b/annotate/order_test.go @@ -49,7 +49,7 @@ func TestChildFirstOrdering(t *testing.T) { } } -func TestChildFirstOrdering_Cycle(t *testing.T) { +func TestChildFirstOrdering_cycle(t *testing.T) { relations := osm.Relations{ {ID: 1, Version: 1, Members: osm.Members{ {Type: osm.TypeRelation, Ref: 2}, @@ -200,7 +200,7 @@ func TestChildFirstOrdering_Walk(t *testing.T) { } } -func TestChildFirstOrdering_MissingRelation(t *testing.T) { +func TestChildFirstOrdering_missingRelation(t *testing.T) { relations := osm.Relations{ {ID: 2, Members: osm.Members{ {Type: osm.TypeRelation, Ref: 3}, diff --git a/annotate/relation_test.go b/annotate/relation_test.go index eccb0d0..d3815de 100644 --- a/annotate/relation_test.go +++ b/annotate/relation_test.go @@ -47,7 +47,7 @@ func TestRelation(t *testing.T) { } } -func TestRelation_Reverse(t *testing.T) { +func TestRelation_reverse(t *testing.T) { ways := osm.Ways{ { ID: 1, Version: 1, Visible: true, Nodes: osm.WayNodes{ @@ -136,7 +136,7 @@ func TestRelation_Reverse(t *testing.T) { }) } -func TestRelation_Polygon(t *testing.T) { +func TestRelation_polygon(t *testing.T) { ways := osm.Ways{ { ID: 1, @@ -242,7 +242,7 @@ func TestRelation_Polygon(t *testing.T) { } } -func TestRelation_Circular(t *testing.T) { +func TestRelation_circular(t *testing.T) { relations := osm.Relations{ &osm.Relation{ID: 1, Version: 1, Visible: true, Timestamp: time.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC), Members: osm.Members{ @@ -325,7 +325,7 @@ func TestRelation_Circular(t *testing.T) { } } -func TestRelation_SelfCircular(t *testing.T) { +func TestRelation_selfCircular(t *testing.T) { rs := osm.Relations{ {ID: 1, Version: 1, Visible: true, Timestamp: time.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC), Members: osm.Members{ @@ -373,7 +373,7 @@ func TestRelation_SelfCircular(t *testing.T) { } } -func BenchmarkRelation(b *testing.B) { +func BenchmarkRelations(b *testing.B) { id := osm.RelationID(2714790) filename := fmt.Sprintf("testdata/relation_%d.osm", id) diff --git a/annotate/way_test.go b/annotate/way_test.go index 41b6c5b..369db6c 100644 --- a/annotate/way_test.go +++ b/annotate/way_test.go @@ -41,7 +41,7 @@ func TestWays(t *testing.T) { } } -func TestWays_ChildFilter(t *testing.T) { +func TestWays_childFilter(t *testing.T) { nodes := osm.Nodes{ {ID: 1, Version: 1, Lat: 1, Lon: 1, Visible: true}, {ID: 1, Version: 2, Lat: 2, Lon: 2, Visible: true}, diff --git a/changeset.go b/changeset.go index 41ac3c4..3707e28 100644 --- a/changeset.go +++ b/changeset.go @@ -45,6 +45,16 @@ func (c *Changeset) ObjectID() ObjectID { return c.ID.ObjectID() } +// Bounds returns the bounds of the changeset as a bounds object. +func (c *Changeset) Bounds() *Bounds { + return &Bounds{ + MinLat: c.MinLat, + MaxLat: c.MaxLat, + MinLon: c.MinLon, + MaxLon: c.MaxLon, + } +} + // Comment is a helper and returns the changeset comment from the tag. func (c *Changeset) Comment() string { return c.Tags.Find("comment") diff --git a/changeset_test.go b/changeset_test.go index ab10e5f..81ed863 100644 --- a/changeset_test.go +++ b/changeset_test.go @@ -131,7 +131,7 @@ func TestChangeset(t *testing.T) { } } -func TestChangesetOpen(t *testing.T) { +func TestChangeset_open(t *testing.T) { data := []byte(` @@ -149,7 +149,7 @@ func TestChangesetOpen(t *testing.T) { } } -func TestChangesetTags(t *testing.T) { +func TestChangeset_tags(t *testing.T) { data := []byte(` @@ -196,7 +196,7 @@ func TestChangesetTags(t *testing.T) { } } -func TestChangesetBound(t *testing.T) { +func TestChangeset_bounds(t *testing.T) { data := []byte(` @@ -210,9 +210,25 @@ func TestChangesetBound(t *testing.T) { if err != nil { t.Fatalf("unmarshal error: %v", err) } + + if v := c.MinLat; v != 51.5871887 { + t.Errorf("incorrect value, got %v", v) + } + + if v := c.MaxLat; v != 51.6032569 { + t.Errorf("incorrect value, got %v", v) + } + + if v := c.MinLon; v != 5.3214071 { + t.Errorf("incorrect value, got %v", v) + } + + if v := c.MaxLon; v != 5.33106 { + t.Errorf("incorrect value, got %v", v) + } } -func TestChangesetComment(t *testing.T) { +func TestChangeset_comments(t *testing.T) { data := []byte(` @@ -262,7 +278,7 @@ func TestChangesetComment(t *testing.T) { } } -func TestChangesetMarshalXML(t *testing.T) { +func TestChangeset_MarshalXML(t *testing.T) { cs := Changeset{ ID: 123, } diff --git a/element_test.go b/element_test.go index cfcb06c..70f3da9 100644 --- a/element_test.go +++ b/element_test.go @@ -6,7 +6,7 @@ import ( "testing" ) -func TestElementID_ParseElementID(t *testing.T) { +func TestParseElementID(t *testing.T) { cases := []struct { name string string string @@ -63,7 +63,7 @@ func TestElementID_ParseElementID(t *testing.T) { } } -func TestElementImplementations(t *testing.T) { +func TestElement_implementations(t *testing.T) { var _ Element = &Node{} var _ Element = &Way{} var _ Element = &Relation{} diff --git a/feature_test.go b/feature_test.go index 51d40f4..7446af7 100644 --- a/feature_test.go +++ b/feature_test.go @@ -43,7 +43,7 @@ func TestFeature_String(t *testing.T) { } } -func TestFeatureID_ParseFeatureID(t *testing.T) { +func TestParseFeatureID(t *testing.T) { cases := []struct { name string id FeatureID diff --git a/internal/mputil/join_test.go b/internal/mputil/join_test.go index 6e60947..aa782f1 100644 --- a/internal/mputil/join_test.go +++ b/internal/mputil/join_test.go @@ -83,7 +83,7 @@ func TestJoin(t *testing.T) { } } -func TestJoinLineString_SinglePointLine(t *testing.T) { +func TestJoin_lineString_singlePointLine(t *testing.T) { cases := []struct { name string input []Segment @@ -135,7 +135,7 @@ func TestJoinLineString_SinglePointLine(t *testing.T) { } } -func TestJoinLineString_DanglingLine(t *testing.T) { +func TestJoin_lineString_danglingLine(t *testing.T) { cases := []struct { name string input []Segment diff --git a/internal/mputil/mputil_test.go b/internal/mputil/mputil_test.go index bddb5ce..7aa6a86 100644 --- a/internal/mputil/mputil_test.go +++ b/internal/mputil/mputil_test.go @@ -6,7 +6,7 @@ import ( "github.com/paulmach/orb" ) -func TestMultiSegmentToRing_NoAnnotation(t *testing.T) { +func TestMultiSegment_ToRing_noAnnotation(t *testing.T) { cases := []struct { name string orientation orb.Orientation @@ -68,7 +68,7 @@ func TestMultiSegmentToRing_NoAnnotation(t *testing.T) { } } -func TestMultiSegmentToRing_Annotation(t *testing.T) { +func TestMultiSegment_ToRing_annotation(t *testing.T) { cases := []struct { name string orientation orb.Orientation diff --git a/marshal_test.go b/marshal_test.go index c05b38e..b8d03b6 100644 --- a/marshal_test.go +++ b/marshal_test.go @@ -11,7 +11,7 @@ import ( "time" ) -func TestMarshal_Node(t *testing.T) { +func TestNode_Marshal(t *testing.T) { c := loadChange(t, "testdata/changeset_38162210.osc") n := c.Create.Nodes[12] @@ -32,7 +32,7 @@ func TestMarshal_Node(t *testing.T) { checkMarshal(t, o) } -func TestMarshal_NodeRoundoff(t *testing.T) { +func TestNode_Marshal_roundoff(t *testing.T) { c := loadChange(t, "testdata/changeset_38162210.osc") n := c.Create.Nodes[194] @@ -42,7 +42,7 @@ func TestMarshal_NodeRoundoff(t *testing.T) { checkMarshal(t, o) } -func TestMarshal_Nodes(t *testing.T) { +func TestNodes_Marshal(t *testing.T) { c := loadChange(t, "testdata/changeset_38162210.osc") ns1 := c.Create.Nodes @@ -57,7 +57,7 @@ func TestMarshal_Nodes(t *testing.T) { checkMarshal(t, o) } -func TestMarshal_Way(t *testing.T) { +func TestWay_Marshal(t *testing.T) { c := loadChange(t, "testdata/changeset_38162210.osc") w := c.Create.Ways[5] @@ -72,7 +72,7 @@ func TestMarshal_Way(t *testing.T) { checkMarshal(t, o) } -func TestMarshal_WayUpdates(t *testing.T) { +func TestWay_Marshal_updates(t *testing.T) { o := loadOSM(t, "testdata/way-updates.osm") checkMarshal(t, o) @@ -81,7 +81,7 @@ func TestMarshal_WayUpdates(t *testing.T) { checkMarshal(t, o) } -func TestMarshal_Relation(t *testing.T) { +func TestRelation_Marshal(t *testing.T) { c := loadChange(t, "testdata/changeset_38162206.osc") r := c.Create.Relations[0] @@ -96,7 +96,7 @@ func TestMarshal_Relation(t *testing.T) { checkMarshal(t, o) } -func TestMarshal_RelationUpdates(t *testing.T) { +func TestRelation_Marshal_updates(t *testing.T) { o := loadOSM(t, "testdata/relation-updates.osm") checkMarshal(t, o) @@ -105,7 +105,7 @@ func TestMarshal_RelationUpdates(t *testing.T) { checkMarshal(t, o) } -func TestMarshal_RelationMemberLocation(t *testing.T) { +func TestRelation_Marshal_memberLocation(t *testing.T) { o := &OSM{ Relations: Relations{ { @@ -121,7 +121,7 @@ func TestMarshal_RelationMemberLocation(t *testing.T) { checkMarshal(t, o) } -func TestProtobufRelation_Orientation(t *testing.T) { +func TestRelation_Marshal_protobufOrientation(t *testing.T) { o := &OSM{ Relations: Relations{ { @@ -140,7 +140,7 @@ func TestProtobufRelation_Orientation(t *testing.T) { checkMarshal(t, o) } -func BenchmarkMarshalXML(b *testing.B) { +func BenchmarkChange_MarshalXML(b *testing.B) { filename := "testdata/changeset_38162206.osc" data := readFile(b, filename) @@ -160,7 +160,7 @@ func BenchmarkMarshalXML(b *testing.B) { } } -func BenchmarkMarshalProto(b *testing.B) { +func BenchmarkChangeSet_Marshal(b *testing.B) { cs := &Changeset{ ID: 38162206, UserID: 2744209, @@ -178,7 +178,7 @@ func BenchmarkMarshalProto(b *testing.B) { } } -func BenchmarkMarshalWayUpdates(b *testing.B) { +func BenchmarkUnmarshalWays(b *testing.B) { o := loadOSM(b, "testdata/way-updates.osm") ways := o.Ways @@ -190,7 +190,7 @@ func BenchmarkMarshalWayUpdates(b *testing.B) { } } -func BenchmarkMarshalRelationUpdates(b *testing.B) { +func BenchmarkUnmarshalRelations(b *testing.B) { o := loadOSM(b, "testdata/relation-updates.osm") relations := o.Relations @@ -202,7 +202,7 @@ func BenchmarkMarshalRelationUpdates(b *testing.B) { } } -func BenchmarkMarshalProtoGZIP(b *testing.B) { +func BenchmarkChangeset_Marshal_gzip(b *testing.B) { cs := &Changeset{ ID: 38162206, UserID: 2744209, @@ -231,7 +231,7 @@ func BenchmarkMarshalProtoGZIP(b *testing.B) { } } -func BenchmarkUnmarshalXML(b *testing.B) { +func BenchmarkChangeset_UnmarshalXML(b *testing.B) { filename := "testdata/changeset_38162206.osc" data := readFile(b, filename) @@ -246,7 +246,7 @@ func BenchmarkUnmarshalXML(b *testing.B) { } } -func BenchmarkUnmarshalProto(b *testing.B) { +func BenchmarkUnmarshalChangeset(b *testing.B) { cs := &Changeset{ ID: 38162206, UserID: 2744209, @@ -268,7 +268,7 @@ func BenchmarkUnmarshalProto(b *testing.B) { } } } -func BenchmarkUnmarshalProtoGZIP(b *testing.B) { +func BenchmarkUnmarshalChangeset_gzip(b *testing.B) { cs := &Changeset{ ID: 38162206, UserID: 2744209, diff --git a/node_test.go b/node_test.go index 4513c9c..3f24104 100644 --- a/node_test.go +++ b/node_test.go @@ -86,7 +86,7 @@ func TestNode_MarshalXML(t *testing.T) { } } -func TestNodes_Marshal(t *testing.T) { +func TestUnmarshalNodes(t *testing.T) { ns := Nodes{ {ID: 123}, {ID: 321}, diff --git a/object_test.go b/object_test.go index 6534842..377ea36 100644 --- a/object_test.go +++ b/object_test.go @@ -2,7 +2,7 @@ package osm import "testing" -func TestObjectID_ParseObjectID(t *testing.T) { +func TestParseObjectID(t *testing.T) { cases := []struct { name string string string @@ -71,7 +71,7 @@ func TestObjectID_ParseObjectID(t *testing.T) { } } -func TestObjectIDImplementations(t *testing.T) { +func TestObjectID_implementations(t *testing.T) { type oid interface { ObjectID() ObjectID } @@ -115,7 +115,7 @@ func TestObjectIDImplementations(t *testing.T) { } } -func TestObjectImplementations(t *testing.T) { +func TestObject_implementations(t *testing.T) { var _ Object = &Node{} var _ Object = &Way{} var _ Object = &Relation{} diff --git a/osmgeojson/build_polygon_test.go b/osmgeojson/build_polygon_test.go index c5d1a7f..19e62fd 100644 --- a/osmgeojson/build_polygon_test.go +++ b/osmgeojson/build_polygon_test.go @@ -9,7 +9,7 @@ import ( "github.com/paulmach/osm" ) -func TestConvert_Polygon(t *testing.T) { +func TestConvert_polygon(t *testing.T) { t.Run("building with inner ring", func(t *testing.T) { xml := ` @@ -62,7 +62,7 @@ func TestConvert_Polygon(t *testing.T) { }) } -func TestConvert_MultiPolygon(t *testing.T) { +func TestConvert_multiPolygon(t *testing.T) { t.Run("invalid simple multipolygon, no outer way", func(t *testing.T) { xml := ` @@ -259,7 +259,7 @@ func TestConvert_MultiPolygon(t *testing.T) { }) } -func TestConvert_RelationMembers(t *testing.T) { +func TestConvert_relationMembers(t *testing.T) { // complex example containing a generic relation, several ways as well as // tagged, uninteresting and untagged nodes // see https://github.com/openstreetmap/openstreetmap-website/pull/283 @@ -330,7 +330,7 @@ func TestConvert_RelationMembers(t *testing.T) { } } -func TestConvert_InnerWays(t *testing.T) { +func TestConvert_innerWays(t *testing.T) { t.Run("missing inner way", func(t *testing.T) { xml := ` @@ -527,7 +527,7 @@ func TestConvert_InnerWays(t *testing.T) { }) } -func TestConvert_MultiPolygonMultiOuter(t *testing.T) { +func TestConvert_multiPolygonMultiOuter(t *testing.T) { raw := ` @@ -665,7 +665,7 @@ func TestConvert_MultiPolygonMultiOuter(t *testing.T) { }) } -func TestConvert_IncludeInvalidPolygons(t *testing.T) { +func TestConvert_includeInvalidPolygons(t *testing.T) { t.Run("missing outer ring", func(t *testing.T) { xml := ` diff --git a/osmgeojson/convert_test.go b/osmgeojson/convert_test.go index 16fc266..23f6582 100644 --- a/osmgeojson/convert_test.go +++ b/osmgeojson/convert_test.go @@ -138,7 +138,7 @@ func TestConvert(t *testing.T) { }) } -func TestConvert_InterestingNodes(t *testing.T) { +func TestConvert_interestingNodes(t *testing.T) { xml := ` @@ -179,7 +179,7 @@ func TestConvert_InterestingNodes(t *testing.T) { testConvert(t, xml, fc) } -func TestConvert_PolygonDetection(t *testing.T) { +func TestConvert_polygonDetection(t *testing.T) { xml := ` @@ -205,7 +205,7 @@ func TestConvert_PolygonDetection(t *testing.T) { testConvert(t, xml, fc) } -func TestConvert_RouteRelation(t *testing.T) { +func TestConvert_routeRelation(t *testing.T) { t.Run("single section", func(t *testing.T) { xml := ` @@ -263,7 +263,7 @@ func TestConvert_RouteRelation(t *testing.T) { }) } -func TestConvert_NonInterestingNodes(t *testing.T) { +func TestConvert_nonInterestingNodes(t *testing.T) { t.Run("include node not part of ways, even if boring", func(t *testing.T) { xml := ` @@ -351,7 +351,7 @@ func TestConvert_NonInterestingNodes(t *testing.T) { }) } -func TestConvert_EmptyElements(t *testing.T) { +func TestConvert_emptyElements(t *testing.T) { t.Run("node", func(t *testing.T) { xml := ` @@ -383,7 +383,7 @@ func TestConvert_EmptyElements(t *testing.T) { }) } -func TestConvert_Tainted(t *testing.T) { +func TestConvert_tainted(t *testing.T) { t.Run("way", func(t *testing.T) { xml := ` @@ -439,7 +439,7 @@ func TestConvert_Tainted(t *testing.T) { }) } -func TestConvert_TaintedEmptyElements(t *testing.T) { +func TestConvert_taintedEmptyElements(t *testing.T) { t.Run("one node way", func(t *testing.T) { xml := ` @@ -467,7 +467,7 @@ func TestConvert_TaintedEmptyElements(t *testing.T) { }) } -func TestConvert_Meta(t *testing.T) { +func TestConvert_meta(t *testing.T) { xml := ` diff --git a/osmpbf/decode_test.go b/osmpbf/decode_test.go index 4398545..d7104bd 100644 --- a/osmpbf/decode_test.go +++ b/osmpbf/decode_test.go @@ -234,7 +234,7 @@ func TestDecode(t *testing.T) { } } -func TestDecodeClose(t *testing.T) { +func TestDecode_Close(t *testing.T) { f, err := os.Open(Delaware) if err != nil { t.Fatal(err) diff --git a/osmpbf/scanner_test.go b/osmpbf/scanner_test.go index 2648ba5..128997e 100644 --- a/osmpbf/scanner_test.go +++ b/osmpbf/scanner_test.go @@ -41,7 +41,7 @@ func TestScanner(t *testing.T) { } } -func TestScannerIntermediateStart(t *testing.T) { +func TestScanner_intermediateStart(t *testing.T) { f, err := os.Open(Delaware) if err != nil { t.Fatalf("unable to open file: %v", err) @@ -77,7 +77,7 @@ func TestScannerIntermediateStart(t *testing.T) { scanner.Close() } -func TestChangesetScannerContext(t *testing.T) { +func TestScanner_context(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) f, err := os.Open(Delaware) if err != nil { @@ -107,7 +107,7 @@ func TestChangesetScannerContext(t *testing.T) { } } -func TestScannerHeader(t *testing.T) { +func TestScanner_Header(t *testing.T) { f, err := os.Open(Delaware) if err != nil { t.Fatalf("unable to open file: %v", err) @@ -144,7 +144,7 @@ func TestScannerHeader(t *testing.T) { } } -func TestChangesetScannerClose(t *testing.T) { +func TestScanner_Close(t *testing.T) { f, err := os.Open(Delaware) if err != nil { t.Fatalf("unable to open file: %v", err) diff --git a/osmxml/scanner_test.go b/osmxml/scanner_test.go index d49efad..a958164 100644 --- a/osmxml/scanner_test.go +++ b/osmxml/scanner_test.go @@ -44,7 +44,7 @@ func TestScanner(t *testing.T) { } } -func TestChangesetScannerContext(t *testing.T) { +func TestScanner_context(t *testing.T) { ctx, cancel := context.WithCancel(context.Background()) r := changesetReader() @@ -69,7 +69,7 @@ func TestChangesetScannerContext(t *testing.T) { } } -func TestChangesetScannerClose(t *testing.T) { +func TestScanner_Close(t *testing.T) { r := changesetReader() scanner := New(context.Background(), r) @@ -92,7 +92,7 @@ func TestChangesetScannerClose(t *testing.T) { } } -func TestChangesetScannerErr(t *testing.T) { +func TestScanner_Err(t *testing.T) { r := changesetReaderErr() scanner := New(context.Background(), r) diff --git a/relation_test.go b/relation_test.go index 57cd41a..0084cae 100644 --- a/relation_test.go +++ b/relation_test.go @@ -100,7 +100,7 @@ func TestRelation_ApplyUpdate(t *testing.T) { } } -func TestRelation_ApplyUpdateError(t *testing.T) { +func TestRelation_ApplyUpdate_error(t *testing.T) { r := Relation{ ID: 123, Members: Members{{Ref: 1, Type: TypeNode}}, diff --git a/way_test.go b/way_test.go index 2dda039..8f0fba3 100644 --- a/way_test.go +++ b/way_test.go @@ -61,7 +61,7 @@ func TestWay_ApplyUpdate(t *testing.T) { } } -func TestWay_ApplyUpdateError(t *testing.T) { +func TestWay_ApplyUpdate_error(t *testing.T) { w := Way{ ID: 123, Nodes: WayNodes{{Lat: 1, Lon: 2}}, @@ -80,7 +80,7 @@ func TestWay_ApplyUpdateError(t *testing.T) { } } -func TestWay_NodesBounds(t *testing.T) { +func TestWayNodes_Bounds(t *testing.T) { wn := WayNodes{ {Lat: 1, Lon: 2}, {Lat: 3, Lon: 4},