package fileservice

import (
	"testing"
	"time"
)

func TestNewLink(t *testing.T) {
	now := time.Now()
	uri := "http://example.com"
	link := NewLink(uri, now)

	if link.Uri != uri {
		t.FailNow()
	}

	if link.Expire != now {
		t.FailNow()
	}
}

package fileservice

import "testing"

func TestPlaceholder(t *testing.T) {}

--- 
+++ 
@@ -1,5 +1,20 @@
 package fileservice
 
-import "testing"
+import (
+	"testing"
+	"time"
+)
 
-func TestPlaceholder(t *testing.T) {}
+func TestNewLink(t *testing.T) {
+	now := time.Now()
+	uri := "http://example.com"
+	link := NewLink(uri, now)
+
+	if link.Uri != uri {
+		t.FailNow()
+	}
+
+	if link.Expire != now {
+		t.FailNow()
+	}
+}
Add test for NewLink() in fileservice package.
