Files
Glenn Lewis 07b0446d8a chore!: Add sliceofpointers custom linter (#3447)
BREAKING CHANGE: `ListOAuthApps` now returns `([]*OAuthApp, error)` instead of `([]OAuthApp, error)`.
2025-01-21 21:34:14 -05:00

21 lines
488 B
Go

// Copyright 2025 The go-github AUTHORS. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package sliceofpointers
import (
"testing"
"golang.org/x/tools/go/analysis/analysistest"
)
func TestRun(t *testing.T) {
t.Parallel()
testdata := analysistest.TestData()
plugin, _ := New(nil)
analyzers, _ := plugin.BuildAnalyzers()
analysistest.Run(t, testdata, analyzers[0], "has-warnings", "no-warnings")
}