Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vellum
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Paweł J. Wal
vellum
Merge requests
!47
Controllers tests
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Controllers tests
69-routes-tests
into
main
Overview
0
Commits
2
Pipelines
2
Changes
80
Merged
Paweł J. Wal
requested to merge
69-routes-tests
into
main
1 month ago
Overview
0
Commits
2
Pipelines
2
Changes
80
Expand
Closes
#69 (closed)
0
0
Merge request reports
Compare
main
version 1
d203844e
1 month ago
main (base)
and
latest version
latest version
2057fb18
2 commits,
1 month ago
version 1
d203844e
1 commit,
1 month ago
80 files
+
4035
−
300
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
80
Search (e.g. *.vue) (Ctrl+P)
back_office/testing/documents_view.go
0 → 100644
+
35
−
0
Options
// SPDX-FileCopyrightText: © 2025 Paweł J. Wal <p@steamshard.net>
//
// SPDX-License-Identifier: AGPL-3.0-only
package
testing
import
(
"github.com/labstack/echo/v4"
"github.com/stretchr/testify/mock"
"kita.gawa.moe/paweljw/vellum/back_office"
)
type
MockDocumentsView
struct
{
mock
.
Mock
}
func
(
m
*
MockDocumentsView
)
Index
(
ctx
echo
.
Context
,
p
back_office
.
DocumentsViewIndexParams
)
string
{
args
:=
m
.
Called
(
ctx
,
p
)
return
args
.
String
(
0
)
}
func
(
m
*
MockDocumentsView
)
Form
(
ctx
echo
.
Context
,
p
back_office
.
DocumentsViewFormParams
)
string
{
args
:=
m
.
Called
(
ctx
,
p
)
return
args
.
String
(
0
)
}
func
(
m
*
MockDocumentsView
)
Show
(
ctx
echo
.
Context
,
p
back_office
.
DocumentsViewShowParams
)
string
{
args
:=
m
.
Called
(
ctx
,
p
)
return
args
.
String
(
0
)
}
func
(
m
*
MockDocumentsView
)
Move
(
ctx
echo
.
Context
,
p
back_office
.
DocumentsViewMoveParams
)
string
{
args
:=
m
.
Called
(
ctx
,
p
)
return
args
.
String
(
0
)
}
Loading