Debian Codegraph @

copyright/copyright_test.go

raw symbols SCIP
1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package copyrightscip-go gomod golang.org/x/tools . `golang.org/x/tools/copyright`/
6
7 import (
8 "stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/"
9 "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/"
10 )
11
12 func TestToolsCopyrightscip-go gomod golang.org/x/tools . `golang.org/x/tools/copyright`/TestToolsCopyright().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
13 files, err := checkCopyrightscip-go gomod golang.org/x/tools . `golang.org/x/tools/copyright`/checkCopyright().("..")
14 if err != nil {
15 t.Fatalscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Fatal().(err)
16 }
17 if len(files) > 0 {
18 t.Errorfscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Errorf().("The following files are missing copyright notices:\n%s", stringsscip-go gomod github.com/golang/go/src go1.25.0 strings/.Joinscip-go gomod github.com/golang/go/src go1.25.0 strings/Join().(files, "\n"))
19 }
20 }