mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
``` git ls-files \*.js \*.go \ | xargs sed -i '1i // SPDX-FileCopyrightText: 2022 Free Mobile\n// SPDX-License-Identifier: AGPL-3.0-only\n' git ls-files \*.vue \ | xargs sed -i '1i <!-- SPDX-FileCopyrightText: 2022 Free Mobile -->\n<!-- SPDX-License-Identifier: AGPL-3.0-only -->\n' ```
23 lines
425 B
Go
23 lines
425 B
Go
// SPDX-FileCopyrightText: 2022 Free Mobile
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
//go:build !release
|
|
|
|
package authentication
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"akvorado/common/reporter"
|
|
)
|
|
|
|
// NewMock instantiantes a new authentication component
|
|
func NewMock(t *testing.T, r *reporter.Reporter) *Component {
|
|
t.Helper()
|
|
c, err := New(r, DefaultConfiguration())
|
|
if err != nil {
|
|
t.Fatalf("New() error:\n%+v", err)
|
|
}
|
|
return c
|
|
}
|