fix formatting

This commit is contained in:
Robert Kaussow 2020-02-03 13:45:03 +01:00
parent f7ebf4bb01
commit 92635b4f33
7 changed files with 8 additions and 7 deletions

View File

@ -2,6 +2,7 @@
[![Build Status](https://img.shields.io/drone/build/xoxys/url-parser?logo=drone)](https://cloud.drone.io/xoxys/url-parser)
[![Codecov](https://img.shields.io/codecov/c/github/xoxys/url-parser)](https://codecov.io/gh/xoxys/url-parser)
[![Go Report Card](https://goreportcard.com/badge/github.com/xoxys/url-parser)](https://goreportcard.com/report/github.com/xoxys/url-parser)
[![License: MIT](https://img.shields.io/github/license/xoxys/url-parser)](LICENSE)
Inspired by [herloct/url-parser](https://github.com/herloct/url-parser), a simple command-line utility for parsing URLs.

View File

@ -11,7 +11,7 @@ func TestParseURL(t *testing.T) {
urlString := "postgres://user:pass@host.com:5432/path/to?key=value&other=other%20value#some-fragment"
tables := []TestParseData{
TestParseData{
{
urlString: urlString,
expected: urlString,
},

View File

@ -18,7 +18,7 @@ func TestPassword(t *testing.T) {
urlString := "postgres://user:pass@host.com:5432/path/to?key=value&other=other%20value#some-fragment"
tables := []TestPasswordData{
TestPasswordData{
{
urlString: urlString,
expected: "pass",
},

View File

@ -19,12 +19,12 @@ func TestPath(t *testing.T) {
urlString := "postgres://user:pass@host.com:5432/path/to?key=value&other=other%20value#some-fragment"
tables := []TestPathData{
TestPathData{
{
urlString: urlString,
pathIndex: -1,
expected: "/path/to",
},
TestPathData{
{
urlString: urlString,
pathIndex: 0,
expected: "path",

View File

@ -18,7 +18,7 @@ func TestRun(t *testing.T) {
urlString := "postgres://user:pass@host.com:5432/path/to?key=value&other=other%20value#some-fragment"
tables := []TestRunData{
TestRunData{
{
urlString: urlString,
expected: urlString,
},

View File

@ -18,7 +18,7 @@ func TestScheme(t *testing.T) {
urlString := "postgres://user:pass@host.com:5432/path/to?key=value&other=other%20value#some-fragment"
tables := []TestSchemeData{
TestSchemeData{
{
urlString: urlString,
expected: "postgres",
},

View File

@ -18,7 +18,7 @@ func TestUser(t *testing.T) {
urlString := "postgres://user:pass@host.com:5432/path/to?key=value&other=other%20value#some-fragment"
tables := []TestUserData{
TestUserData{
{
urlString: urlString,
expected: "user",
},