From 615fe09ed71a9039ee887df536cc70ab80aea1f1 Mon Sep 17 00:00:00 2001 From: intrigus Date: Wed, 1 Apr 2020 15:52:55 +0200 Subject: [PATCH] Format go test stubs --- .../vendor/github.com/ChrisTrenkamp/goxpath/goxpath.go | 7 ++++--- .../CWE-643/vendor/github.com/antchfx/htmlquery/query.go | 3 +-- .../CWE-643/vendor/github.com/jbowtie/gokogiri/xml/node.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ql/test/query-tests/Security/CWE-643/vendor/github.com/ChrisTrenkamp/goxpath/goxpath.go b/ql/test/query-tests/Security/CWE-643/vendor/github.com/ChrisTrenkamp/goxpath/goxpath.go index c7b872ccd84..1867a462121 100644 --- a/ql/test/query-tests/Security/CWE-643/vendor/github.com/ChrisTrenkamp/goxpath/goxpath.go +++ b/ql/test/query-tests/Security/CWE-643/vendor/github.com/ChrisTrenkamp/goxpath/goxpath.go @@ -1,9 +1,10 @@ package goxpath -type Opts struct {} +type Opts struct{} type FuncOpts func(*Opts) -type XPathExec struct {} +type XPathExec struct{} + func Parse(xp string) (XPathExec, error) func MustParse(xp string) XPathExec -func ParseExec(xpstr string, t tree.Node, opts ...FuncOpts) (tree.Result, error) \ No newline at end of file +func ParseExec(xpstr string, t tree.Node, opts ...FuncOpts) (tree.Result, error) diff --git a/ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/htmlquery/query.go b/ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/htmlquery/query.go index d6a7fc4292f..f3f88db24c5 100644 --- a/ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/htmlquery/query.go +++ b/ql/test/query-tests/Security/CWE-643/vendor/github.com/antchfx/htmlquery/query.go @@ -1,7 +1,6 @@ package htmlquery - func Find(top *html.Node, expr string) []*html.Node func FindOne(top *html.Node, expr string) *html.Node func QueryAll(top *html.Node, expr string) ([]*html.Node, error) -func Query(top *html.Node, expr string) (*html.Node, error) \ No newline at end of file +func Query(top *html.Node, expr string) (*html.Node, error) diff --git a/ql/test/query-tests/Security/CWE-643/vendor/github.com/jbowtie/gokogiri/xml/node.go b/ql/test/query-tests/Security/CWE-643/vendor/github.com/jbowtie/gokogiri/xml/node.go index 6eebd74cbb6..6ae0dc780b6 100644 --- a/ql/test/query-tests/Security/CWE-643/vendor/github.com/jbowtie/gokogiri/xml/node.go +++ b/ql/test/query-tests/Security/CWE-643/vendor/github.com/jbowtie/gokogiri/xml/node.go @@ -5,4 +5,4 @@ type Node interface { SearchWithVariables(interface{}, xpath.VariableScope) ([]Node, error) EvalXPath(interface{}, xpath.VariableScope) (interface{}, error) EvalXPathAsBoolean(interface{}, xpath.VariableScope) bool -} \ No newline at end of file +}