diff options
author | Cameron Moore <moorereason@gmail.com> | 2016-03-21 09:36:19 -0500 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2016-03-22 19:43:28 +0100 |
commit | b1b7ac7e750a5d6b73daa5971eb1df4a79b698a5 (patch) | |
tree | 622f29de20a7d7d084164b8f6c8b28bbf414cb87 /hugolib/shortcode_test.go | |
parent | b9127ecca6a4ffea7932ada9d153357cdfa8870c (diff) |
hugolib: Use field keys in composite literals
Small fix in shortcode tests to use field keys in a composite literal.
Diffstat (limited to 'hugolib/shortcode_test.go')
-rw-r--r-- | hugolib/shortcode_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/hugolib/shortcode_test.go b/hugolib/shortcode_test.go index 5d2763016..3c13fa298 100644 --- a/hugolib/shortcode_test.go +++ b/hugolib/shortcode_test.go @@ -1,4 +1,4 @@ -// Copyright 2015 The Hugo Authors. All rights reserved. +// Copyright 2016 The Hugo Authors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -15,9 +15,6 @@ package hugolib import ( "fmt" - "github.com/spf13/hugo/hugofs" - "github.com/spf13/hugo/source" - "github.com/spf13/hugo/target" "path/filepath" "reflect" "regexp" @@ -26,6 +23,9 @@ import ( "testing" "github.com/spf13/hugo/helpers" + "github.com/spf13/hugo/hugofs" + "github.com/spf13/hugo/source" + "github.com/spf13/hugo/target" "github.com/spf13/hugo/tpl" "github.com/spf13/viper" ) @@ -464,7 +464,7 @@ e`, sources := make([]source.ByteSource, len(tests)) for i, test := range tests { - sources[i] = source.ByteSource{filepath.FromSlash(test.contentPath), []byte(test.content)} + sources[i] = source.ByteSource{Name: filepath.FromSlash(test.contentPath), Content: []byte(test.content)} } s := &Site{ |