mirror of
https://github.com/google/go-github.git
synced 2026-10-29 00:44:52 +08:00
BREAKING CHANGE: `ListOAuthApps` now returns `([]*OAuthApp, error)` instead of `([]OAuthApp, error)`.
21 lines
488 B
Go
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")
|
|
}
|