[BACK]Return to licenses_test.go CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / pkgtools / pkglint / files

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/pkgtools/pkglint/files/licenses_test.go between version 1.3 and 1.4

version 1.3, 2016/01/27 21:55:50 version 1.4, 2016/07/09 09:43:48
Line 4  import (
Line 4  import (
         check "gopkg.in/check.v1"          check "gopkg.in/check.v1"
 )  )
   
 func (s *Suite) TestParseLicenses(c *check.C) {  func (s *Suite) Test_parseLicenses(c *check.C) {
         c.Check(parseLicenses("gnu-gpl-v2"), check.DeepEquals, []string{"gnu-gpl-v2"})          c.Check(parseLicenses("gnu-gpl-v2"), check.DeepEquals, []string{"gnu-gpl-v2"})
         c.Check(parseLicenses("AND artistic"), check.DeepEquals, []string{"artistic"})          c.Check(parseLicenses("AND artistic"), check.DeepEquals, []string{"artistic"})
 }  }
   
 func (s *Suite) TestChecklineLicense(c *check.C) {  func (s *Suite) Test_checklineLicense(c *check.C) {
         s.CreateTmpFile(c, "licenses/gnu-gpl-v2", "Most software \u2026")          s.CreateTmpFile(c, "licenses/gnu-gpl-v2", "Most software \u2026")
         mkline := NewMkLine(NewLine("Makefile", 7, "LICENSE=dummy", nil))          mkline := NewMkLine(NewLine("Makefile", 7, "LICENSE=dummy", nil))
         G.globalData.Pkgsrcdir = s.tmpdir          G.globalData.Pkgsrcdir = s.tmpdir

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

CVSweb <webmaster@jp.NetBSD.org>