Skip to content

Commit 46a5398

Browse files
committed
Fix golangci-lint issues: remove unused code
1 parent f8ceb4f commit 46a5398

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

liquid/drop_test.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,6 @@ func TestGetInvokableMethodsEdgeCases(t *testing.T) {
852852
func TestInvokeDropOnMethodReturningNothing(t *testing.T) {
853853
type testDropNoReturn struct {
854854
Drop
855-
called bool
856855
}
857856

858857
// Add a method that returns nothing
@@ -1013,7 +1012,6 @@ func TestInvokeDropOnWithMethodReturningEmptyResults(t *testing.T) {
10131012
// Create a drop with a method that returns nothing
10141013
type testDropVoidMethod struct {
10151014
Drop
1016-
called bool
10171015
}
10181016

10191017
// Add a method with no return values using a function that matches the pattern
@@ -1188,18 +1186,6 @@ func TestInvokeDropOldNonStructValue(t *testing.T) {
11881186
}
11891187
}
11901188

1191-
// testDropPointerMethod has methods on pointer that won't be found on value
1192-
type testDropPointerMethod struct {
1193-
Drop
1194-
TestField string
1195-
}
1196-
1197-
// PointerMethod is defined on *testDropPointerMethod, not testDropPointerMethod
1198-
// This means v.MethodByName on the VALUE won't find it after v.Elem()
1199-
func (t *testDropPointerMethod) PointerMethod() string {
1200-
return "pointer_method"
1201-
}
1202-
12031189
// TestInvokeDropOldPointerMethodNotFound tests InvokeDropOld when method is on pointer
12041190
func TestInvokeDropOldPointerMethodNotFound(t *testing.T) {
12051191
// InvokeDropOld is a method on Drop, so when called, 'd' is *Drop, not the outer struct

liquid/tags/render_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -843,15 +843,6 @@ func TestRenderTagWithIterableObjectImplementation(t *testing.T) {
843843
}
844844
}
845845

846-
// mockPartialLoader is a mock file system that returns non-template objects
847-
type mockPartialLoader struct {
848-
liquid.FileSystem
849-
}
850-
851-
func (m *mockPartialLoader) ReadTemplateFile(templatePath string) (string, error) {
852-
return "content", nil
853-
}
854-
855846
// TestRenderTagPartialNotTemplate tests when LoadPartial returns non-template
856847
func TestRenderTagPartialNotTemplate(t *testing.T) {
857848
env := liquid.NewEnvironment()

0 commit comments

Comments
 (0)