diff --git a/boilerplate/flyte/end2end/end2end.sh b/boilerplate/flyte/end2end/end2end.sh index 4dae992316..736e3bb3e4 100755 --- a/boilerplate/flyte/end2end/end2end.sh +++ b/boilerplate/flyte/end2end/end2end.sh @@ -13,4 +13,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" LATEST_VERSION=$(curl --silent "https://api.github.com/repos/flyteorg/flytesnacks/releases/latest" | jq -r .tag_name) -FLYTE_SDK_USE_STRUCTURED_DATASET=TRUE python ./boilerplate/flyte/end2end/run-tests.py $LATEST_VERSION P0,P1 $CONFIG_FILE ${EXTRA_FLAGS[@]} +python ./boilerplate/flyte/end2end/run-tests.py $LATEST_VERSION P0,P1 $CONFIG_FILE ${EXTRA_FLAGS[@]} diff --git a/boilerplate/flyte/end2end/run-tests.py b/boilerplate/flyte/end2end/run-tests.py index b711ce9c29..6645c60fde 100755 --- a/boilerplate/flyte/end2end/run-tests.py +++ b/boilerplate/flyte/end2end/run-tests.py @@ -6,10 +6,11 @@ import time import traceback import requests -from pathlib import Path from typing import List, Mapping, Tuple, Dict from flytekit.remote import FlyteRemote from flytekit.models.core.execution import WorkflowExecutionPhase +from flytekit.configuration import Config, ImageConfig, SerializationSettings + WAIT_TIME = 10 MAX_ATTEMPTS = 60 @@ -79,7 +80,7 @@ def schedule_workflow_group( # Wait for all launch plans to finish attempt = 0 while attempt == 0 or ( - not all([lp.is_complete for lp in launch_plans]) and attempt < MAX_ATTEMPTS + not all([lp.is_done for lp in launch_plans]) and attempt < MAX_ATTEMPTS ): attempt += 1 print( @@ -129,15 +130,16 @@ def run( config_file_path, terminate_workflow_on_failure: bool, ) -> List[Dict[str, str]]: - remote = FlyteRemote.from_config( + remote = FlyteRemote( + Config.auto(config_file=config_file_path), default_project="flytesnacks", default_domain="development", - config_file_path=config_file_path, ) - # For a given release tag and priority, this function filters the workflow groups from the flytesnacks manifest file. For - # example, for the release tag "v0.2.224" and the priority "P0" it returns [ "core" ]. - manifest_url = f"https://raw.githubusercontent.com/flyteorg/flytesnacks/{flytesnacks_release_tag}/cookbook/flyte_tests_manifest.json" + # For a given release tag and priority, this function filters the workflow groups from the flytesnacks + # manifest file. For example, for the release tag "v0.2.224" and the priority "P0" it returns [ "core" ]. + manifest_url = "https://raw.githubusercontent.com/flyteorg/flytesnacks/" \ + f"{flytesnacks_release_tag}/cookbook/flyte_tests_manifest.json" r = requests.get(manifest_url) parsed_manifest = r.json() diff --git a/boilerplate/flyte/golang_support_tools/go.mod b/boilerplate/flyte/golang_support_tools/go.mod index 307398c89e..dbf94f4113 100644 --- a/boilerplate/flyte/golang_support_tools/go.mod +++ b/boilerplate/flyte/golang_support_tools/go.mod @@ -3,18 +3,21 @@ module github.com/flyteorg/boilerplate go 1.17 require ( + github.com/EngHabu/mockery v0.0.0-20220405200825-3f76291311cf github.com/alvaroloes/enumer v1.1.2 - github.com/flyteorg/flytestdlib v0.4.7 + github.com/flyteorg/flytestdlib v0.4.16 github.com/golangci/golangci-lint v1.38.0 github.com/pseudomuto/protoc-gen-doc v1.4.1 - github.com/vektra/mockery v0.0.0-20181123154057-e78b021dcbb5 ) require ( 4d63.com/gochecknoglobals v0.0.0-20201008074935-acfc0b28355a // indirect cloud.google.com/go v0.75.0 // indirect cloud.google.com/go/storage v1.12.0 // indirect - github.com/Azure/azure-sdk-for-go v51.0.0+incompatible // indirect + github.com/Azure/azure-sdk-for-go v62.3.0+incompatible // indirect + github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 // indirect + github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 // indirect + github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 // indirect github.com/Azure/go-autorest v14.2.0+incompatible // indirect github.com/Azure/go-autorest/autorest v0.11.17 // indirect github.com/Azure/go-autorest/autorest/adal v0.9.10 // indirect @@ -46,6 +49,7 @@ require ( github.com/esimonov/ifshort v1.0.1 // indirect github.com/fatih/color v1.10.0 // indirect github.com/fatih/structtag v1.2.0 // indirect + github.com/flyteorg/stow v0.3.1 // indirect github.com/form3tech-oss/jwt-go v3.2.2+incompatible // indirect github.com/fsnotify/fsnotify v1.4.9 // indirect github.com/fzipp/gocyclo v0.3.1 // indirect @@ -62,6 +66,7 @@ require ( github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b // indirect github.com/gobwas/glob v0.2.3 // indirect github.com/gofrs/flock v0.8.0 // indirect + github.com/gofrs/uuid v4.2.0+incompatible // indirect github.com/gogo/protobuf v1.3.2 // indirect github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect github.com/golang/protobuf v1.4.3 // indirect @@ -82,7 +87,6 @@ require ( github.com/gostaticanalysis/comment v1.4.1 // indirect github.com/gostaticanalysis/forcetypeassert v0.0.0-20200621232751-01d4955beaa5 // indirect github.com/gostaticanalysis/nilerr v0.1.1 // indirect - github.com/graymeta/stow v0.2.7 // indirect github.com/hashicorp/hcl v1.0.0 // indirect github.com/huandu/xstrings v1.0.0 // indirect github.com/imdario/mergo v0.3.5 // indirect @@ -135,7 +139,6 @@ require ( github.com/ryancurrah/gomodguard v1.2.0 // indirect github.com/ryanrolds/sqlclosecheck v0.3.0 // indirect github.com/sanposhiho/wastedassign v0.1.3 // indirect - github.com/satori/go.uuid v1.2.0 // indirect github.com/securego/gosec/v2 v2.6.1 // indirect github.com/shazow/go-diff v0.0.0-20160112020656-b6b7b6733b8c // indirect github.com/sirupsen/logrus v1.8.0 // indirect @@ -149,7 +152,7 @@ require ( github.com/spf13/viper v1.7.1 // indirect github.com/ssgreg/nlreturn/v2 v2.1.0 // indirect github.com/stretchr/objx v0.3.0 // indirect - github.com/stretchr/testify v1.7.0 // indirect + github.com/stretchr/testify v1.7.1 // indirect github.com/subosito/gotenv v1.2.0 // indirect github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b // indirect github.com/tetafro/godot v1.4.4 // indirect @@ -160,15 +163,15 @@ require ( github.com/ultraware/whitespace v0.0.4 // indirect github.com/uudashr/gocognit v1.0.1 // indirect go.opencensus.io v0.22.6 // indirect - golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect + golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5 // indirect - golang.org/x/mod v0.4.1 // indirect - golang.org/x/net v0.0.0-20210119194325-5f4716e94777 // indirect + golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect + golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f // indirect golang.org/x/oauth2 v0.0.0-20210126194326-f9ce19ea3013 // indirect - golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect - golang.org/x/text v0.3.5 // indirect + golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 // indirect + golang.org/x/text v0.3.7 // indirect golang.org/x/time v0.0.0-20201208040808-7e3f01d25324 // indirect - golang.org/x/tools v0.1.0 // indirect + golang.org/x/tools v0.1.10 // indirect golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect google.golang.org/api v0.38.0 // indirect google.golang.org/appengine v1.6.7 // indirect @@ -188,6 +191,4 @@ require ( mvdan.cc/unparam v0.0.0-20210104141923-aac4ce9116a7 // indirect ) -replace github.com/vektra/mockery => github.com/enghabu/mockery v0.0.0-20191009061720-9d0c8670c2f0 - replace github.com/pseudomuto/protoc-gen-doc => github.com/flyteorg/protoc-gen-doc v1.4.2 diff --git a/boilerplate/flyte/golang_support_tools/go.sum b/boilerplate/flyte/golang_support_tools/go.sum index a62010d29f..02895fb574 100644 --- a/boilerplate/flyte/golang_support_tools/go.sum +++ b/boilerplate/flyte/golang_support_tools/go.sum @@ -41,9 +41,14 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9 cloud.google.com/go/storage v1.12.0 h1:4y3gHptW1EHVtcPAVE0eBBlFuGqEejTTG3KdIE0lUX4= cloud.google.com/go/storage v1.12.0/go.mod h1:fFLk2dp2oAhDz8QFKwqrjdJvxSp/W2g7nillojlL5Ho= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= -github.com/Azure/azure-sdk-for-go v32.5.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= -github.com/Azure/azure-sdk-for-go v51.0.0+incompatible h1:p7blnyJSjJqf5jflHbSGhIhEpXIgIFmYZNg5uwqweso= -github.com/Azure/azure-sdk-for-go v51.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go v62.3.0+incompatible h1:Ctfsn9UoA/BB4HMYQlbPPgNXdX0tZ4tmb85+KFb2+RE= +github.com/Azure/azure-sdk-for-go v62.3.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1 h1:qoVeMsc9/fh/yhxVaA0obYjVH/oI/ihrOoMwsLS9KSA= +github.com/Azure/azure-sdk-for-go/sdk/azcore v0.21.1/go.mod h1:fBF9PQNqB8scdgpZ3ufzaLntG0AG7C1WjPMsiFOmfHM= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3 h1:E+m3SkZCN0Bf5q7YdTs5lSm2CYY3CK4spn5OmUIiQtk= +github.com/Azure/azure-sdk-for-go/sdk/internal v0.8.3/go.mod h1:KLF4gFr6DcKFZwSuH8w8yEK6DpFl3LP5rhdvAb7Yz5I= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0 h1:Px2UA+2RvSSvv+RvJNuUB6n7rs5Wsel4dXLe90Um2n4= +github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v0.3.0/go.mod h1:tPaiy8S5bQ+S5sOiDlINkp7+Ef339+Nz5L5XO+cnOHo= github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs= github.com/Azure/go-autorest v14.2.0+incompatible/go.mod h1:r+4oMnoxhatjLLJ6zxSWATqVooLgysK6ZNox3g/xq24= github.com/Azure/go-autorest/autorest v0.9.0/go.mod h1:xyHB1BMZT0cuDHU7I0+g046+BFDTQ8rEZB0s4Yfa6bI= @@ -74,6 +79,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03 github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 h1:sHglBQTwgx+rWPdisA5ynNEsoARbiCBOyGcJM4/OzsM= github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24/go.mod h1:4UJr5HIiMZrwgkSPdsjy2uOQExX/WEILpIrO9UPGuXs= +github.com/EngHabu/mockery v0.0.0-20220405200825-3f76291311cf h1:M7A2Tn3R8rVgsoJHHKkmkpiNOItys4GxJj6JytRjdDg= +github.com/EngHabu/mockery v0.0.0-20220405200825-3f76291311cf/go.mod h1:Kya4Y46gyq/3TEyAzeNe5UkCk+W9apy5KbuX+5KnZ6M= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= github.com/Masterminds/semver v1.4.2/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= @@ -177,8 +184,9 @@ github.com/denis-tingajkin/go-header v0.4.2 h1:jEeSF4sdv8/3cT/WY8AgDHUoItNSoEZ7q github.com/denis-tingajkin/go-header v0.4.2/go.mod h1:eLRHAVXzE5atsKAnNRDB90WHCFFnBUn4RN0nRcs1LJA= github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no= -github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c= github.com/dnaeon/go-vcr v1.1.0/go.mod h1:M7tiix8f0r6mKKJ3Yq/kqU1OYf3MnfmBWVbPx/yU9ko= +github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= +github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM= github.com/docopt/docopt-go v0.0.0-20180111231733-ee0de3bc6815/go.mod h1:WwZ+bS3ebgob9U8Nd0kOddGdZWjyMGR8Wziv+TBNwSE= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= @@ -188,8 +196,6 @@ github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFP github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc= github.com/emicklei/go-restful v0.0.0-20170410110728-ff4f55a20633/go.mod h1:otzb+WCGbkyDHkqmQmT5YD2WR4BBwUdeQoFo8l/7tVs= -github.com/enghabu/mockery v0.0.0-20191009061720-9d0c8670c2f0 h1:qxIJwfSemSCqhG3/lEw1Rm+wYbegjuKsqy0ZqnIpL14= -github.com/enghabu/mockery v0.0.0-20191009061720-9d0c8670c2f0/go.mod h1:KfdIkmkpVY3n2sc1ykFj01uMviOiXH2HMhUCvA5FYGg= github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= @@ -210,10 +216,12 @@ github.com/fatih/color v1.10.0 h1:s36xzo75JdqLaaWoiEHk767eHiwo0598uUxyfiPkDsg= github.com/fatih/color v1.10.0/go.mod h1:ELkj/draVOlAH/xkhN6mQ50Qd0MPOk5AAr3maGEBuJM= github.com/fatih/structtag v1.2.0 h1:/OdNE99OxoI/PqaW/SuSK9uxxT3f/tcSZgon/ssNSx4= github.com/fatih/structtag v1.2.0/go.mod h1:mBJUNpUnHmRKrKlQQlmCrh5PuhftFbNv8Ys4/aAZl94= -github.com/flyteorg/flytestdlib v0.4.7 h1:SMPPXI3j/MjP7D2fqaR+lPQkTrqYS7xZbwsgJI2F8SU= -github.com/flyteorg/flytestdlib v0.4.7/go.mod h1:fv1ar34LJLMTaf0tbfetisLykUlARi7rP+NQTUn6QQs= +github.com/flyteorg/flytestdlib v0.4.16 h1:r4dCPUOqoE9xCAhOw9KDB7O6cBoCxyEtepIWYcj93H0= +github.com/flyteorg/flytestdlib v0.4.16/go.mod h1:WA5Y4hrcgD0ybGOKJVOQ4sP8q7NLRV+S5SWOlH0axgM= github.com/flyteorg/protoc-gen-doc v1.4.2 h1:Otw0F+RHaPQ8XlpzhLLgjsCMcrAIcMO01Zh+ALe3rrE= github.com/flyteorg/protoc-gen-doc v1.4.2/go.mod h1:exDTOVwqpp30eV/EDPFLZy3Pwr2sn6hBC1WIYH/UbIg= +github.com/flyteorg/stow v0.3.1 h1:cBMbWl03Gsy5KoA5mutUYTuYpqtT7Pb8+ANGCLnmFEs= +github.com/flyteorg/stow v0.3.1/go.mod h1:HBld7ud0i4khMHwJjkO8v+NSP7ddKa/ruhf4I8fliaA= github.com/form3tech-oss/jwt-go v3.2.2+incompatible h1:TcekIExNqud5crz4xD2pavyTgWiPvpYe4Xau31I0PRk= github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoDwaVPLA+WlJuPGy+QneDUgJi2k= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= @@ -276,6 +284,8 @@ github.com/gobwas/glob v0.2.3 h1:A4xDbljILXROh+kObIiy5kIaPYD8e96x1tgBhUI5J+Y= github.com/gobwas/glob v0.2.3/go.mod h1:d3Ez4x06l9bZtSvzIay5+Yzi0fmZzPgnTbPcKjJAkT8= github.com/gofrs/flock v0.8.0 h1:MSdYClljsF3PbENUUEx85nkWfJSGfzYI9yEBZOJz6CY= github.com/gofrs/flock v0.8.0/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU= +github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0= +github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= @@ -397,8 +407,6 @@ github.com/gostaticanalysis/forcetypeassert v0.0.0-20200621232751-01d4955beaa5 h github.com/gostaticanalysis/forcetypeassert v0.0.0-20200621232751-01d4955beaa5/go.mod h1:qZEedyP/sY1lTGV1uJ3VhWZ2mqag3IkWsDHVbplHXak= github.com/gostaticanalysis/nilerr v0.1.1 h1:ThE+hJP0fEp4zWLkWHWcRyI2Od0p7DlgYG3Uqrmrcpk= github.com/gostaticanalysis/nilerr v0.1.1/go.mod h1:wZYb6YI5YAxxq0i1+VJbY0s2YONW0HU0GPE3+5PWN4A= -github.com/graymeta/stow v0.2.7 h1:b31cB1Ylw/388sYSZxnmpjT2QxC21AaQ8fRnUtE13b4= -github.com/graymeta/stow v0.2.7/go.mod h1:JAs139Zr29qfsecy7b+h9DRsWXbFbsd7LCrbCDYI84k= github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= @@ -484,6 +492,8 @@ github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.0/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.5/go.mod h1:9r2w37qlBe7rQ6e1fg1S/9xpWHSnaqNdHD3WcMdbPDA= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= @@ -577,7 +587,6 @@ github.com/nbutton23/zxcvbn-go v0.0.0-20201221231540-e56b841a3c88/go.mod h1:KSVJ github.com/ncw/swift v1.0.49/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= github.com/ncw/swift v1.0.53 h1:luHjjTNtekIEvHg5KdAFIBaH7bWfNkefwFnpDffSIks= github.com/ncw/swift v1.0.53/go.mod h1:23YIA4yWVnGwv2dQlN4bB7egfYX6YLn0Yo/S6zZO/ZM= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nishanths/exhaustive v0.1.0 h1:kVlMw8h2LHPMGUVqUj6230oQjjTMFjwcZrnkhXzFfl8= github.com/nishanths/exhaustive v0.1.0/go.mod h1:S1j9110vxV1ECdCudXRkeMnFQ/DQk9ajLT0Uf2MYZQQ= @@ -698,8 +707,6 @@ github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sanposhiho/wastedassign v0.1.3 h1:qIMpTh4NGZYRbFJ+DSpLoVn8F4SLciX2afRvXPefC7w= github.com/sanposhiho/wastedassign v0.1.3/go.mod h1:LGpq5Hsv74QaqM47WtIsRSF/ik9kqk07kchgv66tLVE= -github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/securego/gosec/v2 v2.6.1 h1:+KCw+uz16FYfFyJ/A5aU6uP7mnrL+j1TbDnk1yN+8R0= github.com/securego/gosec/v2 v2.6.1/go.mod h1:I76p3NTHBXsGhybUW+cEQ692q2Vp+A0Z6ZLzDIZy+Ao= @@ -766,8 +773,9 @@ github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UV github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/tdakkota/asciicheck v0.0.0-20200416200610-e657995f937b h1:HxLVTlqcHhFAz3nWUcuvpH7WuOMv8LQoCWmruLfFH2U= @@ -799,6 +807,7 @@ github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.4.1/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= @@ -832,8 +841,9 @@ golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20201002170205-7f63de1d35b0/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad h1:DN0cp81fZ3njFcrLCytUHRSUkqBjfTo4Tx9RJTWs0EY= golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 h1:7I4JAnoQBe7ZtJcBaYHi5UtiO8tQHbUSXxL+pnGRANg= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -867,8 +877,9 @@ golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzB golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/mod v0.4.1 h1:Kvvh58BN8Y9/lBi7hTekvtMpm07eUZ0ck5pRHpsMWrY= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 h1:kQgndtyPBW/JIYERgdxfwMYh3AVStj88WQTlNDi2a+o= +golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3/go.mod h1:3p9vT2HGsQu2K1YbXdKPJLVgG5VJdoTa1poYQBtP1AY= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -907,14 +918,18 @@ golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= golang.org/x/net v0.0.0-20200904194848-62affa334b73/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777 h1:003p0dJM77cxMSyCPFphvZf/Y5/NXf5fzg6ufd1/Oew= -golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210610132358-84b48f89b13b/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f h1:OfiFi4JbukWwe3lzw+xunroH1mnC1e2Gy5cxNJApiSY= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -936,6 +951,7 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= @@ -993,8 +1009,10 @@ golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654 h1:id054HUawV2/6IGm2IV8KZQjqtwAOo2CYlOToYqa0d0= +golang.org/x/sys v0.0.0-20211019181941-9d821ace8654/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -1003,8 +1021,9 @@ golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3 golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ= -golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1017,7 +1036,6 @@ golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGm golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20181112210238-4b1f3b6b1646/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190110163146-51295c7ec13a/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= @@ -1106,8 +1124,9 @@ golang.org/x/tools v0.0.0-20210104081019-d8d6ddbec6ee/go.mod h1:emZCQorbCU4vsT4f golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.0.0-20210108195828-e2f9c7f1fc8e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.0 h1:po9/4sTYwZU9lPhi1tOrb4hCv3qrhiQ77LZfGa2OjwY= golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.10 h1:QjFRCZxdOhBJ/UNgnBZLbNV13DlbnK0quyivTnXJM20= +golang.org/x/tools v0.1.10/go.mod h1:Uh6Zz+xoGYZom868N8YTex3t7RhtHDBrE8Gzo9bV56E= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1225,8 +1244,9 @@ gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLks gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= diff --git a/boilerplate/flyte/golang_support_tools/tools.go b/boilerplate/flyte/golang_support_tools/tools.go index d970d2106a..43de03450c 100644 --- a/boilerplate/flyte/golang_support_tools/tools.go +++ b/boilerplate/flyte/golang_support_tools/tools.go @@ -1,11 +1,12 @@ +//go:build tools // +build tools package tools import ( + _ "github.com/EngHabu/mockery/cmd/mockery" _ "github.com/alvaroloes/enumer" _ "github.com/flyteorg/flytestdlib/cli/pflags" _ "github.com/golangci/golangci-lint/cmd/golangci-lint" - _ "github.com/vektra/mockery/cmd/mockery" _ "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc" ) diff --git a/boilerplate/flyte/golang_test_targets/download_tooling.sh b/boilerplate/flyte/golang_test_targets/download_tooling.sh index f205cb9cd0..003220ea70 100755 --- a/boilerplate/flyte/golang_test_targets/download_tooling.sh +++ b/boilerplate/flyte/golang_test_targets/download_tooling.sh @@ -16,8 +16,8 @@ set -e # List of tools to go get # In the format of ":" or ":" if no cli tools=( - "github.com/vektra/mockery/cmd/mockery" - "github.com/flyteorg/flytestdlib/cli/pflags" + "github.com/EngHabu/mockery/cmd/mockery" + "github.com/flyteorg/flytestdlib/cli/pflags@latest" "github.com/golangci/golangci-lint/cmd/golangci-lint@latest" "github.com/alvaroloes/enumer" "github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc" diff --git a/events/mocks/event_recorder.go b/events/mocks/event_recorder.go index 29efbf2755..ff73b1f3ac 100644 --- a/events/mocks/event_recorder.go +++ b/events/mocks/event_recorder.go @@ -24,13 +24,13 @@ func (_m EventRecorder_RecordNodeEvent) Return(_a0 error) *EventRecorder_RecordN } func (_m *EventRecorder) OnRecordNodeEvent(ctx context.Context, _a1 *event.NodeExecutionEvent) *EventRecorder_RecordNodeEvent { - c := _m.On("RecordNodeEvent", ctx, _a1) - return &EventRecorder_RecordNodeEvent{Call: c} + c_call := _m.On("RecordNodeEvent", ctx, _a1) + return &EventRecorder_RecordNodeEvent{Call: c_call} } func (_m *EventRecorder) OnRecordNodeEventMatch(matchers ...interface{}) *EventRecorder_RecordNodeEvent { - c := _m.On("RecordNodeEvent", matchers...) - return &EventRecorder_RecordNodeEvent{Call: c} + c_call := _m.On("RecordNodeEvent", matchers...) + return &EventRecorder_RecordNodeEvent{Call: c_call} } // RecordNodeEvent provides a mock function with given fields: ctx, _a1 @@ -56,13 +56,13 @@ func (_m EventRecorder_RecordTaskEvent) Return(_a0 error) *EventRecorder_RecordT } func (_m *EventRecorder) OnRecordTaskEvent(ctx context.Context, _a1 *event.TaskExecutionEvent) *EventRecorder_RecordTaskEvent { - c := _m.On("RecordTaskEvent", ctx, _a1) - return &EventRecorder_RecordTaskEvent{Call: c} + c_call := _m.On("RecordTaskEvent", ctx, _a1) + return &EventRecorder_RecordTaskEvent{Call: c_call} } func (_m *EventRecorder) OnRecordTaskEventMatch(matchers ...interface{}) *EventRecorder_RecordTaskEvent { - c := _m.On("RecordTaskEvent", matchers...) - return &EventRecorder_RecordTaskEvent{Call: c} + c_call := _m.On("RecordTaskEvent", matchers...) + return &EventRecorder_RecordTaskEvent{Call: c_call} } // RecordTaskEvent provides a mock function with given fields: ctx, _a1 @@ -88,13 +88,13 @@ func (_m EventRecorder_RecordWorkflowEvent) Return(_a0 error) *EventRecorder_Rec } func (_m *EventRecorder) OnRecordWorkflowEvent(ctx context.Context, _a1 *event.WorkflowExecutionEvent) *EventRecorder_RecordWorkflowEvent { - c := _m.On("RecordWorkflowEvent", ctx, _a1) - return &EventRecorder_RecordWorkflowEvent{Call: c} + c_call := _m.On("RecordWorkflowEvent", ctx, _a1) + return &EventRecorder_RecordWorkflowEvent{Call: c_call} } func (_m *EventRecorder) OnRecordWorkflowEventMatch(matchers ...interface{}) *EventRecorder_RecordWorkflowEvent { - c := _m.On("RecordWorkflowEvent", matchers...) - return &EventRecorder_RecordWorkflowEvent{Call: c} + c_call := _m.On("RecordWorkflowEvent", matchers...) + return &EventRecorder_RecordWorkflowEvent{Call: c_call} } // RecordWorkflowEvent provides a mock function with given fields: ctx, _a1 diff --git a/events/mocks/event_sink.go b/events/mocks/event_sink.go index 61046ee46d..0d523b0268 100644 --- a/events/mocks/event_sink.go +++ b/events/mocks/event_sink.go @@ -24,13 +24,13 @@ func (_m EventSink_Close) Return(_a0 error) *EventSink_Close { } func (_m *EventSink) OnClose() *EventSink_Close { - c := _m.On("Close") - return &EventSink_Close{Call: c} + c_call := _m.On("Close") + return &EventSink_Close{Call: c_call} } func (_m *EventSink) OnCloseMatch(matchers ...interface{}) *EventSink_Close { - c := _m.On("Close", matchers...) - return &EventSink_Close{Call: c} + c_call := _m.On("Close", matchers...) + return &EventSink_Close{Call: c_call} } // Close provides a mock function with given fields: @@ -56,13 +56,13 @@ func (_m EventSink_Sink) Return(_a0 error) *EventSink_Sink { } func (_m *EventSink) OnSink(ctx context.Context, message protoiface.MessageV1) *EventSink_Sink { - c := _m.On("Sink", ctx, message) - return &EventSink_Sink{Call: c} + c_call := _m.On("Sink", ctx, message) + return &EventSink_Sink{Call: c_call} } func (_m *EventSink) OnSinkMatch(matchers ...interface{}) *EventSink_Sink { - c := _m.On("Sink", matchers...) - return &EventSink_Sink{Call: c} + c_call := _m.On("Sink", matchers...) + return &EventSink_Sink{Call: c_call} } // Sink provides a mock function with given fields: ctx, message diff --git a/events/mocks/node_event_recorder.go b/events/mocks/node_event_recorder.go index bdb42cb0d4..cc84763bda 100644 --- a/events/mocks/node_event_recorder.go +++ b/events/mocks/node_event_recorder.go @@ -26,13 +26,13 @@ func (_m NodeEventRecorder_RecordNodeEvent) Return(_a0 error) *NodeEventRecorder } func (_m *NodeEventRecorder) OnRecordNodeEvent(ctx context.Context, _a1 *event.NodeExecutionEvent, eventConfig *config.EventConfig) *NodeEventRecorder_RecordNodeEvent { - c := _m.On("RecordNodeEvent", ctx, _a1, eventConfig) - return &NodeEventRecorder_RecordNodeEvent{Call: c} + c_call := _m.On("RecordNodeEvent", ctx, _a1, eventConfig) + return &NodeEventRecorder_RecordNodeEvent{Call: c_call} } func (_m *NodeEventRecorder) OnRecordNodeEventMatch(matchers ...interface{}) *NodeEventRecorder_RecordNodeEvent { - c := _m.On("RecordNodeEvent", matchers...) - return &NodeEventRecorder_RecordNodeEvent{Call: c} + c_call := _m.On("RecordNodeEvent", matchers...) + return &NodeEventRecorder_RecordNodeEvent{Call: c_call} } // RecordNodeEvent provides a mock function with given fields: ctx, _a1, eventConfig diff --git a/events/mocks/task_event_recorder.go b/events/mocks/task_event_recorder.go index 84140ed07b..1b27e57d44 100644 --- a/events/mocks/task_event_recorder.go +++ b/events/mocks/task_event_recorder.go @@ -26,13 +26,13 @@ func (_m TaskEventRecorder_RecordTaskEvent) Return(_a0 error) *TaskEventRecorder } func (_m *TaskEventRecorder) OnRecordTaskEvent(ctx context.Context, _a1 *event.TaskExecutionEvent, eventConfig *config.EventConfig) *TaskEventRecorder_RecordTaskEvent { - c := _m.On("RecordTaskEvent", ctx, _a1, eventConfig) - return &TaskEventRecorder_RecordTaskEvent{Call: c} + c_call := _m.On("RecordTaskEvent", ctx, _a1, eventConfig) + return &TaskEventRecorder_RecordTaskEvent{Call: c_call} } func (_m *TaskEventRecorder) OnRecordTaskEventMatch(matchers ...interface{}) *TaskEventRecorder_RecordTaskEvent { - c := _m.On("RecordTaskEvent", matchers...) - return &TaskEventRecorder_RecordTaskEvent{Call: c} + c_call := _m.On("RecordTaskEvent", matchers...) + return &TaskEventRecorder_RecordTaskEvent{Call: c_call} } // RecordTaskEvent provides a mock function with given fields: ctx, _a1, eventConfig diff --git a/events/mocks/workflow_event_recorder.go b/events/mocks/workflow_event_recorder.go index c55c0aadb4..efab13150f 100644 --- a/events/mocks/workflow_event_recorder.go +++ b/events/mocks/workflow_event_recorder.go @@ -26,13 +26,13 @@ func (_m WorkflowEventRecorder_RecordWorkflowEvent) Return(_a0 error) *WorkflowE } func (_m *WorkflowEventRecorder) OnRecordWorkflowEvent(ctx context.Context, _a1 *event.WorkflowExecutionEvent, eventConfig *config.EventConfig) *WorkflowEventRecorder_RecordWorkflowEvent { - c := _m.On("RecordWorkflowEvent", ctx, _a1, eventConfig) - return &WorkflowEventRecorder_RecordWorkflowEvent{Call: c} + c_call := _m.On("RecordWorkflowEvent", ctx, _a1, eventConfig) + return &WorkflowEventRecorder_RecordWorkflowEvent{Call: c_call} } func (_m *WorkflowEventRecorder) OnRecordWorkflowEventMatch(matchers ...interface{}) *WorkflowEventRecorder_RecordWorkflowEvent { - c := _m.On("RecordWorkflowEvent", matchers...) - return &WorkflowEventRecorder_RecordWorkflowEvent{Call: c} + c_call := _m.On("RecordWorkflowEvent", matchers...) + return &WorkflowEventRecorder_RecordWorkflowEvent{Call: c_call} } // RecordWorkflowEvent provides a mock function with given fields: ctx, _a1, eventConfig diff --git a/events/mocks/writer.go b/events/mocks/writer.go index f03066760f..23c94ee7e8 100644 --- a/events/mocks/writer.go +++ b/events/mocks/writer.go @@ -22,13 +22,13 @@ func (_m writer_Flush) Return(_a0 error) *writer_Flush { } func (_m *writer) OnFlush() *writer_Flush { - c := _m.On("Flush") - return &writer_Flush{Call: c} + c_call := _m.On("Flush") + return &writer_Flush{Call: c_call} } func (_m *writer) OnFlushMatch(matchers ...interface{}) *writer_Flush { - c := _m.On("Flush", matchers...) - return &writer_Flush{Call: c} + c_call := _m.On("Flush", matchers...) + return &writer_Flush{Call: c_call} } // Flush provides a mock function with given fields: @@ -54,13 +54,13 @@ func (_m writer_Write) Return(_a0 error) *writer_Write { } func (_m *writer) OnWrite(ctx context.Context, content string) *writer_Write { - c := _m.On("Write", ctx, content) - return &writer_Write{Call: c} + c_call := _m.On("Write", ctx, content) + return &writer_Write{Call: c_call} } func (_m *writer) OnWriteMatch(matchers ...interface{}) *writer_Write { - c := _m.On("Write", matchers...) - return &writer_Write{Call: c} + c_call := _m.On("Write", matchers...) + return &writer_Write{Call: c_call} } // Write provides a mock function with given fields: ctx, content diff --git a/manager/shardstrategy/mocks/shard_strategy.go b/manager/shardstrategy/mocks/shard_strategy.go index 5f59259741..4d16f9fef7 100644 --- a/manager/shardstrategy/mocks/shard_strategy.go +++ b/manager/shardstrategy/mocks/shard_strategy.go @@ -22,13 +22,13 @@ func (_m ShardStrategy_GetPodCount) Return(_a0 int) *ShardStrategy_GetPodCount { } func (_m *ShardStrategy) OnGetPodCount() *ShardStrategy_GetPodCount { - c := _m.On("GetPodCount") - return &ShardStrategy_GetPodCount{Call: c} + c_call := _m.On("GetPodCount") + return &ShardStrategy_GetPodCount{Call: c_call} } func (_m *ShardStrategy) OnGetPodCountMatch(matchers ...interface{}) *ShardStrategy_GetPodCount { - c := _m.On("GetPodCount", matchers...) - return &ShardStrategy_GetPodCount{Call: c} + c_call := _m.On("GetPodCount", matchers...) + return &ShardStrategy_GetPodCount{Call: c_call} } // GetPodCount provides a mock function with given fields: @@ -54,13 +54,13 @@ func (_m ShardStrategy_HashCode) Return(_a0 uint32, _a1 error) *ShardStrategy_Ha } func (_m *ShardStrategy) OnHashCode() *ShardStrategy_HashCode { - c := _m.On("HashCode") - return &ShardStrategy_HashCode{Call: c} + c_call := _m.On("HashCode") + return &ShardStrategy_HashCode{Call: c_call} } func (_m *ShardStrategy) OnHashCodeMatch(matchers ...interface{}) *ShardStrategy_HashCode { - c := _m.On("HashCode", matchers...) - return &ShardStrategy_HashCode{Call: c} + c_call := _m.On("HashCode", matchers...) + return &ShardStrategy_HashCode{Call: c_call} } // HashCode provides a mock function with given fields: @@ -93,13 +93,13 @@ func (_m ShardStrategy_UpdatePodSpec) Return(_a0 error) *ShardStrategy_UpdatePod } func (_m *ShardStrategy) OnUpdatePodSpec(pod *v1.PodSpec, containerName string, podIndex int) *ShardStrategy_UpdatePodSpec { - c := _m.On("UpdatePodSpec", pod, containerName, podIndex) - return &ShardStrategy_UpdatePodSpec{Call: c} + c_call := _m.On("UpdatePodSpec", pod, containerName, podIndex) + return &ShardStrategy_UpdatePodSpec{Call: c_call} } func (_m *ShardStrategy) OnUpdatePodSpecMatch(matchers ...interface{}) *ShardStrategy_UpdatePodSpec { - c := _m.On("UpdatePodSpec", matchers...) - return &ShardStrategy_UpdatePodSpec{Call: c} + c_call := _m.On("UpdatePodSpec", matchers...) + return &ShardStrategy_UpdatePodSpec{Call: c_call} } // UpdatePodSpec provides a mock function with given fields: pod, containerName, podIndex diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseNode.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseNode.go index 2d13131392..365d02fd3d 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseNode.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseNode.go @@ -21,13 +21,13 @@ func (_m BaseNode_GetID) Return(_a0 string) *BaseNode_GetID { } func (_m *BaseNode) OnGetID() *BaseNode_GetID { - c := _m.On("GetID") - return &BaseNode_GetID{Call: c} + c_call := _m.On("GetID") + return &BaseNode_GetID{Call: c_call} } func (_m *BaseNode) OnGetIDMatch(matchers ...interface{}) *BaseNode_GetID { - c := _m.On("GetID", matchers...) - return &BaseNode_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &BaseNode_GetID{Call: c_call} } // GetID provides a mock function with given fields: @@ -53,13 +53,13 @@ func (_m BaseNode_GetKind) Return(_a0 v1alpha1.NodeKind) *BaseNode_GetKind { } func (_m *BaseNode) OnGetKind() *BaseNode_GetKind { - c := _m.On("GetKind") - return &BaseNode_GetKind{Call: c} + c_call := _m.On("GetKind") + return &BaseNode_GetKind{Call: c_call} } func (_m *BaseNode) OnGetKindMatch(matchers ...interface{}) *BaseNode_GetKind { - c := _m.On("GetKind", matchers...) - return &BaseNode_GetKind{Call: c} + c_call := _m.On("GetKind", matchers...) + return &BaseNode_GetKind{Call: c_call} } // GetKind provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseWorkflow.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseWorkflow.go index 4c0022016e..4b4c384d04 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseWorkflow.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseWorkflow.go @@ -21,13 +21,13 @@ func (_m BaseWorkflow_FromNode) Return(_a0 []string, _a1 error) *BaseWorkflow_Fr } func (_m *BaseWorkflow) OnFromNode(name string) *BaseWorkflow_FromNode { - c := _m.On("FromNode", name) - return &BaseWorkflow_FromNode{Call: c} + c_call := _m.On("FromNode", name) + return &BaseWorkflow_FromNode{Call: c_call} } func (_m *BaseWorkflow) OnFromNodeMatch(matchers ...interface{}) *BaseWorkflow_FromNode { - c := _m.On("FromNode", matchers...) - return &BaseWorkflow_FromNode{Call: c} + c_call := _m.On("FromNode", matchers...) + return &BaseWorkflow_FromNode{Call: c_call} } // FromNode provides a mock function with given fields: name @@ -62,13 +62,13 @@ func (_m BaseWorkflow_GetID) Return(_a0 string) *BaseWorkflow_GetID { } func (_m *BaseWorkflow) OnGetID() *BaseWorkflow_GetID { - c := _m.On("GetID") - return &BaseWorkflow_GetID{Call: c} + c_call := _m.On("GetID") + return &BaseWorkflow_GetID{Call: c_call} } func (_m *BaseWorkflow) OnGetIDMatch(matchers ...interface{}) *BaseWorkflow_GetID { - c := _m.On("GetID", matchers...) - return &BaseWorkflow_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &BaseWorkflow_GetID{Call: c_call} } // GetID provides a mock function with given fields: @@ -94,13 +94,13 @@ func (_m BaseWorkflow_GetNode) Return(_a0 v1alpha1.ExecutableNode, _a1 bool) *Ba } func (_m *BaseWorkflow) OnGetNode(nodeID string) *BaseWorkflow_GetNode { - c := _m.On("GetNode", nodeID) - return &BaseWorkflow_GetNode{Call: c} + c_call := _m.On("GetNode", nodeID) + return &BaseWorkflow_GetNode{Call: c_call} } func (_m *BaseWorkflow) OnGetNodeMatch(matchers ...interface{}) *BaseWorkflow_GetNode { - c := _m.On("GetNode", matchers...) - return &BaseWorkflow_GetNode{Call: c} + c_call := _m.On("GetNode", matchers...) + return &BaseWorkflow_GetNode{Call: c_call} } // GetNode provides a mock function with given fields: nodeID @@ -135,13 +135,13 @@ func (_m BaseWorkflow_StartNode) Return(_a0 v1alpha1.ExecutableNode) *BaseWorkfl } func (_m *BaseWorkflow) OnStartNode() *BaseWorkflow_StartNode { - c := _m.On("StartNode") - return &BaseWorkflow_StartNode{Call: c} + c_call := _m.On("StartNode") + return &BaseWorkflow_StartNode{Call: c_call} } func (_m *BaseWorkflow) OnStartNodeMatch(matchers ...interface{}) *BaseWorkflow_StartNode { - c := _m.On("StartNode", matchers...) - return &BaseWorkflow_StartNode{Call: c} + c_call := _m.On("StartNode", matchers...) + return &BaseWorkflow_StartNode{Call: c_call} } // StartNode provides a mock function with given fields: @@ -169,13 +169,13 @@ func (_m BaseWorkflow_ToNode) Return(_a0 []string, _a1 error) *BaseWorkflow_ToNo } func (_m *BaseWorkflow) OnToNode(name string) *BaseWorkflow_ToNode { - c := _m.On("ToNode", name) - return &BaseWorkflow_ToNode{Call: c} + c_call := _m.On("ToNode", name) + return &BaseWorkflow_ToNode{Call: c_call} } func (_m *BaseWorkflow) OnToNodeMatch(matchers ...interface{}) *BaseWorkflow_ToNode { - c := _m.On("ToNode", matchers...) - return &BaseWorkflow_ToNode{Call: c} + c_call := _m.On("ToNode", matchers...) + return &BaseWorkflow_ToNode{Call: c_call} } // ToNode provides a mock function with given fields: name diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseWorkflowWithStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseWorkflowWithStatus.go index aa7d219ea2..d3601d19c8 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseWorkflowWithStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/BaseWorkflowWithStatus.go @@ -23,13 +23,13 @@ func (_m BaseWorkflowWithStatus_FromNode) Return(_a0 []string, _a1 error) *BaseW } func (_m *BaseWorkflowWithStatus) OnFromNode(name string) *BaseWorkflowWithStatus_FromNode { - c := _m.On("FromNode", name) - return &BaseWorkflowWithStatus_FromNode{Call: c} + c_call := _m.On("FromNode", name) + return &BaseWorkflowWithStatus_FromNode{Call: c_call} } func (_m *BaseWorkflowWithStatus) OnFromNodeMatch(matchers ...interface{}) *BaseWorkflowWithStatus_FromNode { - c := _m.On("FromNode", matchers...) - return &BaseWorkflowWithStatus_FromNode{Call: c} + c_call := _m.On("FromNode", matchers...) + return &BaseWorkflowWithStatus_FromNode{Call: c_call} } // FromNode provides a mock function with given fields: name @@ -64,13 +64,13 @@ func (_m BaseWorkflowWithStatus_GetID) Return(_a0 string) *BaseWorkflowWithStatu } func (_m *BaseWorkflowWithStatus) OnGetID() *BaseWorkflowWithStatus_GetID { - c := _m.On("GetID") - return &BaseWorkflowWithStatus_GetID{Call: c} + c_call := _m.On("GetID") + return &BaseWorkflowWithStatus_GetID{Call: c_call} } func (_m *BaseWorkflowWithStatus) OnGetIDMatch(matchers ...interface{}) *BaseWorkflowWithStatus_GetID { - c := _m.On("GetID", matchers...) - return &BaseWorkflowWithStatus_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &BaseWorkflowWithStatus_GetID{Call: c_call} } // GetID provides a mock function with given fields: @@ -96,13 +96,13 @@ func (_m BaseWorkflowWithStatus_GetNode) Return(_a0 v1alpha1.ExecutableNode, _a1 } func (_m *BaseWorkflowWithStatus) OnGetNode(nodeID string) *BaseWorkflowWithStatus_GetNode { - c := _m.On("GetNode", nodeID) - return &BaseWorkflowWithStatus_GetNode{Call: c} + c_call := _m.On("GetNode", nodeID) + return &BaseWorkflowWithStatus_GetNode{Call: c_call} } func (_m *BaseWorkflowWithStatus) OnGetNodeMatch(matchers ...interface{}) *BaseWorkflowWithStatus_GetNode { - c := _m.On("GetNode", matchers...) - return &BaseWorkflowWithStatus_GetNode{Call: c} + c_call := _m.On("GetNode", matchers...) + return &BaseWorkflowWithStatus_GetNode{Call: c_call} } // GetNode provides a mock function with given fields: nodeID @@ -137,13 +137,13 @@ func (_m BaseWorkflowWithStatus_GetNodeExecutionStatus) Return(_a0 v1alpha1.Exec } func (_m *BaseWorkflowWithStatus) OnGetNodeExecutionStatus(ctx context.Context, id string) *BaseWorkflowWithStatus_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", ctx, id) - return &BaseWorkflowWithStatus_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", ctx, id) + return &BaseWorkflowWithStatus_GetNodeExecutionStatus{Call: c_call} } func (_m *BaseWorkflowWithStatus) OnGetNodeExecutionStatusMatch(matchers ...interface{}) *BaseWorkflowWithStatus_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", matchers...) - return &BaseWorkflowWithStatus_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", matchers...) + return &BaseWorkflowWithStatus_GetNodeExecutionStatus{Call: c_call} } // GetNodeExecutionStatus provides a mock function with given fields: ctx, id @@ -171,13 +171,13 @@ func (_m BaseWorkflowWithStatus_StartNode) Return(_a0 v1alpha1.ExecutableNode) * } func (_m *BaseWorkflowWithStatus) OnStartNode() *BaseWorkflowWithStatus_StartNode { - c := _m.On("StartNode") - return &BaseWorkflowWithStatus_StartNode{Call: c} + c_call := _m.On("StartNode") + return &BaseWorkflowWithStatus_StartNode{Call: c_call} } func (_m *BaseWorkflowWithStatus) OnStartNodeMatch(matchers ...interface{}) *BaseWorkflowWithStatus_StartNode { - c := _m.On("StartNode", matchers...) - return &BaseWorkflowWithStatus_StartNode{Call: c} + c_call := _m.On("StartNode", matchers...) + return &BaseWorkflowWithStatus_StartNode{Call: c_call} } // StartNode provides a mock function with given fields: @@ -205,13 +205,13 @@ func (_m BaseWorkflowWithStatus_ToNode) Return(_a0 []string, _a1 error) *BaseWor } func (_m *BaseWorkflowWithStatus) OnToNode(name string) *BaseWorkflowWithStatus_ToNode { - c := _m.On("ToNode", name) - return &BaseWorkflowWithStatus_ToNode{Call: c} + c_call := _m.On("ToNode", name) + return &BaseWorkflowWithStatus_ToNode{Call: c_call} } func (_m *BaseWorkflowWithStatus) OnToNodeMatch(matchers ...interface{}) *BaseWorkflowWithStatus_ToNode { - c := _m.On("ToNode", matchers...) - return &BaseWorkflowWithStatus_ToNode{Call: c} + c_call := _m.On("ToNode", matchers...) + return &BaseWorkflowWithStatus_ToNode{Call: c_call} } // ToNode provides a mock function with given fields: name diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableBranchNode.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableBranchNode.go index b99c33f554..69ceb90c2e 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableBranchNode.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableBranchNode.go @@ -23,13 +23,13 @@ func (_m ExecutableBranchNode_GetElse) Return(_a0 *string) *ExecutableBranchNode } func (_m *ExecutableBranchNode) OnGetElse() *ExecutableBranchNode_GetElse { - c := _m.On("GetElse") - return &ExecutableBranchNode_GetElse{Call: c} + c_call := _m.On("GetElse") + return &ExecutableBranchNode_GetElse{Call: c_call} } func (_m *ExecutableBranchNode) OnGetElseMatch(matchers ...interface{}) *ExecutableBranchNode_GetElse { - c := _m.On("GetElse", matchers...) - return &ExecutableBranchNode_GetElse{Call: c} + c_call := _m.On("GetElse", matchers...) + return &ExecutableBranchNode_GetElse{Call: c_call} } // GetElse provides a mock function with given fields: @@ -57,13 +57,13 @@ func (_m ExecutableBranchNode_GetElseFail) Return(_a0 *core.Error) *ExecutableBr } func (_m *ExecutableBranchNode) OnGetElseFail() *ExecutableBranchNode_GetElseFail { - c := _m.On("GetElseFail") - return &ExecutableBranchNode_GetElseFail{Call: c} + c_call := _m.On("GetElseFail") + return &ExecutableBranchNode_GetElseFail{Call: c_call} } func (_m *ExecutableBranchNode) OnGetElseFailMatch(matchers ...interface{}) *ExecutableBranchNode_GetElseFail { - c := _m.On("GetElseFail", matchers...) - return &ExecutableBranchNode_GetElseFail{Call: c} + c_call := _m.On("GetElseFail", matchers...) + return &ExecutableBranchNode_GetElseFail{Call: c_call} } // GetElseFail provides a mock function with given fields: @@ -91,13 +91,13 @@ func (_m ExecutableBranchNode_GetElseIf) Return(_a0 []v1alpha1.ExecutableIfBlock } func (_m *ExecutableBranchNode) OnGetElseIf() *ExecutableBranchNode_GetElseIf { - c := _m.On("GetElseIf") - return &ExecutableBranchNode_GetElseIf{Call: c} + c_call := _m.On("GetElseIf") + return &ExecutableBranchNode_GetElseIf{Call: c_call} } func (_m *ExecutableBranchNode) OnGetElseIfMatch(matchers ...interface{}) *ExecutableBranchNode_GetElseIf { - c := _m.On("GetElseIf", matchers...) - return &ExecutableBranchNode_GetElseIf{Call: c} + c_call := _m.On("GetElseIf", matchers...) + return &ExecutableBranchNode_GetElseIf{Call: c_call} } // GetElseIf provides a mock function with given fields: @@ -125,13 +125,13 @@ func (_m ExecutableBranchNode_GetIf) Return(_a0 v1alpha1.ExecutableIfBlock) *Exe } func (_m *ExecutableBranchNode) OnGetIf() *ExecutableBranchNode_GetIf { - c := _m.On("GetIf") - return &ExecutableBranchNode_GetIf{Call: c} + c_call := _m.On("GetIf") + return &ExecutableBranchNode_GetIf{Call: c_call} } func (_m *ExecutableBranchNode) OnGetIfMatch(matchers ...interface{}) *ExecutableBranchNode_GetIf { - c := _m.On("GetIf", matchers...) - return &ExecutableBranchNode_GetIf{Call: c} + c_call := _m.On("GetIf", matchers...) + return &ExecutableBranchNode_GetIf{Call: c_call} } // GetIf provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableBranchNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableBranchNodeStatus.go index 4014184a43..6b6823ecd3 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableBranchNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableBranchNodeStatus.go @@ -21,13 +21,13 @@ func (_m ExecutableBranchNodeStatus_GetFinalizedNode) Return(_a0 *string) *Execu } func (_m *ExecutableBranchNodeStatus) OnGetFinalizedNode() *ExecutableBranchNodeStatus_GetFinalizedNode { - c := _m.On("GetFinalizedNode") - return &ExecutableBranchNodeStatus_GetFinalizedNode{Call: c} + c_call := _m.On("GetFinalizedNode") + return &ExecutableBranchNodeStatus_GetFinalizedNode{Call: c_call} } func (_m *ExecutableBranchNodeStatus) OnGetFinalizedNodeMatch(matchers ...interface{}) *ExecutableBranchNodeStatus_GetFinalizedNode { - c := _m.On("GetFinalizedNode", matchers...) - return &ExecutableBranchNodeStatus_GetFinalizedNode{Call: c} + c_call := _m.On("GetFinalizedNode", matchers...) + return &ExecutableBranchNodeStatus_GetFinalizedNode{Call: c_call} } // GetFinalizedNode provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m ExecutableBranchNodeStatus_GetPhase) Return(_a0 v1alpha1.BranchNodePhas } func (_m *ExecutableBranchNodeStatus) OnGetPhase() *ExecutableBranchNodeStatus_GetPhase { - c := _m.On("GetPhase") - return &ExecutableBranchNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase") + return &ExecutableBranchNodeStatus_GetPhase{Call: c_call} } func (_m *ExecutableBranchNodeStatus) OnGetPhaseMatch(matchers ...interface{}) *ExecutableBranchNodeStatus_GetPhase { - c := _m.On("GetPhase", matchers...) - return &ExecutableBranchNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase", matchers...) + return &ExecutableBranchNodeStatus_GetPhase{Call: c_call} } // GetPhase provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableDynamicNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableDynamicNodeStatus.go index a1aae70a65..849e4729c4 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableDynamicNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableDynamicNodeStatus.go @@ -23,13 +23,13 @@ func (_m ExecutableDynamicNodeStatus_GetDynamicNodePhase) Return(_a0 v1alpha1.Dy } func (_m *ExecutableDynamicNodeStatus) OnGetDynamicNodePhase() *ExecutableDynamicNodeStatus_GetDynamicNodePhase { - c := _m.On("GetDynamicNodePhase") - return &ExecutableDynamicNodeStatus_GetDynamicNodePhase{Call: c} + c_call := _m.On("GetDynamicNodePhase") + return &ExecutableDynamicNodeStatus_GetDynamicNodePhase{Call: c_call} } func (_m *ExecutableDynamicNodeStatus) OnGetDynamicNodePhaseMatch(matchers ...interface{}) *ExecutableDynamicNodeStatus_GetDynamicNodePhase { - c := _m.On("GetDynamicNodePhase", matchers...) - return &ExecutableDynamicNodeStatus_GetDynamicNodePhase{Call: c} + c_call := _m.On("GetDynamicNodePhase", matchers...) + return &ExecutableDynamicNodeStatus_GetDynamicNodePhase{Call: c_call} } // GetDynamicNodePhase provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m ExecutableDynamicNodeStatus_GetDynamicNodeReason) Return(_a0 string) *E } func (_m *ExecutableDynamicNodeStatus) OnGetDynamicNodeReason() *ExecutableDynamicNodeStatus_GetDynamicNodeReason { - c := _m.On("GetDynamicNodeReason") - return &ExecutableDynamicNodeStatus_GetDynamicNodeReason{Call: c} + c_call := _m.On("GetDynamicNodeReason") + return &ExecutableDynamicNodeStatus_GetDynamicNodeReason{Call: c_call} } func (_m *ExecutableDynamicNodeStatus) OnGetDynamicNodeReasonMatch(matchers ...interface{}) *ExecutableDynamicNodeStatus_GetDynamicNodeReason { - c := _m.On("GetDynamicNodeReason", matchers...) - return &ExecutableDynamicNodeStatus_GetDynamicNodeReason{Call: c} + c_call := _m.On("GetDynamicNodeReason", matchers...) + return &ExecutableDynamicNodeStatus_GetDynamicNodeReason{Call: c_call} } // GetDynamicNodeReason provides a mock function with given fields: @@ -87,13 +87,13 @@ func (_m ExecutableDynamicNodeStatus_GetExecutionError) Return(_a0 *core.Executi } func (_m *ExecutableDynamicNodeStatus) OnGetExecutionError() *ExecutableDynamicNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError") - return &ExecutableDynamicNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError") + return &ExecutableDynamicNodeStatus_GetExecutionError{Call: c_call} } func (_m *ExecutableDynamicNodeStatus) OnGetExecutionErrorMatch(matchers ...interface{}) *ExecutableDynamicNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError", matchers...) - return &ExecutableDynamicNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError", matchers...) + return &ExecutableDynamicNodeStatus_GetExecutionError{Call: c_call} } // GetExecutionError provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableIfBlock.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableIfBlock.go index b65b145c7a..80c48b814c 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableIfBlock.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableIfBlock.go @@ -21,13 +21,13 @@ func (_m ExecutableIfBlock_GetCondition) Return(_a0 *core.BooleanExpression) *Ex } func (_m *ExecutableIfBlock) OnGetCondition() *ExecutableIfBlock_GetCondition { - c := _m.On("GetCondition") - return &ExecutableIfBlock_GetCondition{Call: c} + c_call := _m.On("GetCondition") + return &ExecutableIfBlock_GetCondition{Call: c_call} } func (_m *ExecutableIfBlock) OnGetConditionMatch(matchers ...interface{}) *ExecutableIfBlock_GetCondition { - c := _m.On("GetCondition", matchers...) - return &ExecutableIfBlock_GetCondition{Call: c} + c_call := _m.On("GetCondition", matchers...) + return &ExecutableIfBlock_GetCondition{Call: c_call} } // GetCondition provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m ExecutableIfBlock_GetThenNode) Return(_a0 *string) *ExecutableIfBlock_G } func (_m *ExecutableIfBlock) OnGetThenNode() *ExecutableIfBlock_GetThenNode { - c := _m.On("GetThenNode") - return &ExecutableIfBlock_GetThenNode{Call: c} + c_call := _m.On("GetThenNode") + return &ExecutableIfBlock_GetThenNode{Call: c_call} } func (_m *ExecutableIfBlock) OnGetThenNodeMatch(matchers ...interface{}) *ExecutableIfBlock_GetThenNode { - c := _m.On("GetThenNode", matchers...) - return &ExecutableIfBlock_GetThenNode{Call: c} + c_call := _m.On("GetThenNode", matchers...) + return &ExecutableIfBlock_GetThenNode{Call: c_call} } // GetThenNode provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNode.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNode.go index 31f404be8a..883e8eca66 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNode.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNode.go @@ -26,13 +26,13 @@ func (_m ExecutableNode_GetActiveDeadline) Return(_a0 *time.Duration) *Executabl } func (_m *ExecutableNode) OnGetActiveDeadline() *ExecutableNode_GetActiveDeadline { - c := _m.On("GetActiveDeadline") - return &ExecutableNode_GetActiveDeadline{Call: c} + c_call := _m.On("GetActiveDeadline") + return &ExecutableNode_GetActiveDeadline{Call: c_call} } func (_m *ExecutableNode) OnGetActiveDeadlineMatch(matchers ...interface{}) *ExecutableNode_GetActiveDeadline { - c := _m.On("GetActiveDeadline", matchers...) - return &ExecutableNode_GetActiveDeadline{Call: c} + c_call := _m.On("GetActiveDeadline", matchers...) + return &ExecutableNode_GetActiveDeadline{Call: c_call} } // GetActiveDeadline provides a mock function with given fields: @@ -60,13 +60,13 @@ func (_m ExecutableNode_GetBranchNode) Return(_a0 v1alpha1.ExecutableBranchNode) } func (_m *ExecutableNode) OnGetBranchNode() *ExecutableNode_GetBranchNode { - c := _m.On("GetBranchNode") - return &ExecutableNode_GetBranchNode{Call: c} + c_call := _m.On("GetBranchNode") + return &ExecutableNode_GetBranchNode{Call: c_call} } func (_m *ExecutableNode) OnGetBranchNodeMatch(matchers ...interface{}) *ExecutableNode_GetBranchNode { - c := _m.On("GetBranchNode", matchers...) - return &ExecutableNode_GetBranchNode{Call: c} + c_call := _m.On("GetBranchNode", matchers...) + return &ExecutableNode_GetBranchNode{Call: c_call} } // GetBranchNode provides a mock function with given fields: @@ -94,13 +94,13 @@ func (_m ExecutableNode_GetConfig) Return(_a0 *v1.ConfigMap) *ExecutableNode_Get } func (_m *ExecutableNode) OnGetConfig() *ExecutableNode_GetConfig { - c := _m.On("GetConfig") - return &ExecutableNode_GetConfig{Call: c} + c_call := _m.On("GetConfig") + return &ExecutableNode_GetConfig{Call: c_call} } func (_m *ExecutableNode) OnGetConfigMatch(matchers ...interface{}) *ExecutableNode_GetConfig { - c := _m.On("GetConfig", matchers...) - return &ExecutableNode_GetConfig{Call: c} + c_call := _m.On("GetConfig", matchers...) + return &ExecutableNode_GetConfig{Call: c_call} } // GetConfig provides a mock function with given fields: @@ -128,13 +128,13 @@ func (_m ExecutableNode_GetExecutionDeadline) Return(_a0 *time.Duration) *Execut } func (_m *ExecutableNode) OnGetExecutionDeadline() *ExecutableNode_GetExecutionDeadline { - c := _m.On("GetExecutionDeadline") - return &ExecutableNode_GetExecutionDeadline{Call: c} + c_call := _m.On("GetExecutionDeadline") + return &ExecutableNode_GetExecutionDeadline{Call: c_call} } func (_m *ExecutableNode) OnGetExecutionDeadlineMatch(matchers ...interface{}) *ExecutableNode_GetExecutionDeadline { - c := _m.On("GetExecutionDeadline", matchers...) - return &ExecutableNode_GetExecutionDeadline{Call: c} + c_call := _m.On("GetExecutionDeadline", matchers...) + return &ExecutableNode_GetExecutionDeadline{Call: c_call} } // GetExecutionDeadline provides a mock function with given fields: @@ -162,13 +162,13 @@ func (_m ExecutableNode_GetID) Return(_a0 string) *ExecutableNode_GetID { } func (_m *ExecutableNode) OnGetID() *ExecutableNode_GetID { - c := _m.On("GetID") - return &ExecutableNode_GetID{Call: c} + c_call := _m.On("GetID") + return &ExecutableNode_GetID{Call: c_call} } func (_m *ExecutableNode) OnGetIDMatch(matchers ...interface{}) *ExecutableNode_GetID { - c := _m.On("GetID", matchers...) - return &ExecutableNode_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &ExecutableNode_GetID{Call: c_call} } // GetID provides a mock function with given fields: @@ -194,13 +194,13 @@ func (_m ExecutableNode_GetInputBindings) Return(_a0 []*v1alpha1.Binding) *Execu } func (_m *ExecutableNode) OnGetInputBindings() *ExecutableNode_GetInputBindings { - c := _m.On("GetInputBindings") - return &ExecutableNode_GetInputBindings{Call: c} + c_call := _m.On("GetInputBindings") + return &ExecutableNode_GetInputBindings{Call: c_call} } func (_m *ExecutableNode) OnGetInputBindingsMatch(matchers ...interface{}) *ExecutableNode_GetInputBindings { - c := _m.On("GetInputBindings", matchers...) - return &ExecutableNode_GetInputBindings{Call: c} + c_call := _m.On("GetInputBindings", matchers...) + return &ExecutableNode_GetInputBindings{Call: c_call} } // GetInputBindings provides a mock function with given fields: @@ -228,13 +228,13 @@ func (_m ExecutableNode_GetKind) Return(_a0 v1alpha1.NodeKind) *ExecutableNode_G } func (_m *ExecutableNode) OnGetKind() *ExecutableNode_GetKind { - c := _m.On("GetKind") - return &ExecutableNode_GetKind{Call: c} + c_call := _m.On("GetKind") + return &ExecutableNode_GetKind{Call: c_call} } func (_m *ExecutableNode) OnGetKindMatch(matchers ...interface{}) *ExecutableNode_GetKind { - c := _m.On("GetKind", matchers...) - return &ExecutableNode_GetKind{Call: c} + c_call := _m.On("GetKind", matchers...) + return &ExecutableNode_GetKind{Call: c_call} } // GetKind provides a mock function with given fields: @@ -260,13 +260,13 @@ func (_m ExecutableNode_GetName) Return(_a0 string) *ExecutableNode_GetName { } func (_m *ExecutableNode) OnGetName() *ExecutableNode_GetName { - c := _m.On("GetName") - return &ExecutableNode_GetName{Call: c} + c_call := _m.On("GetName") + return &ExecutableNode_GetName{Call: c_call} } func (_m *ExecutableNode) OnGetNameMatch(matchers ...interface{}) *ExecutableNode_GetName { - c := _m.On("GetName", matchers...) - return &ExecutableNode_GetName{Call: c} + c_call := _m.On("GetName", matchers...) + return &ExecutableNode_GetName{Call: c_call} } // GetName provides a mock function with given fields: @@ -292,13 +292,13 @@ func (_m ExecutableNode_GetOutputAlias) Return(_a0 []v1alpha1.Alias) *Executable } func (_m *ExecutableNode) OnGetOutputAlias() *ExecutableNode_GetOutputAlias { - c := _m.On("GetOutputAlias") - return &ExecutableNode_GetOutputAlias{Call: c} + c_call := _m.On("GetOutputAlias") + return &ExecutableNode_GetOutputAlias{Call: c_call} } func (_m *ExecutableNode) OnGetOutputAliasMatch(matchers ...interface{}) *ExecutableNode_GetOutputAlias { - c := _m.On("GetOutputAlias", matchers...) - return &ExecutableNode_GetOutputAlias{Call: c} + c_call := _m.On("GetOutputAlias", matchers...) + return &ExecutableNode_GetOutputAlias{Call: c_call} } // GetOutputAlias provides a mock function with given fields: @@ -326,13 +326,13 @@ func (_m ExecutableNode_GetResources) Return(_a0 *v1.ResourceRequirements) *Exec } func (_m *ExecutableNode) OnGetResources() *ExecutableNode_GetResources { - c := _m.On("GetResources") - return &ExecutableNode_GetResources{Call: c} + c_call := _m.On("GetResources") + return &ExecutableNode_GetResources{Call: c_call} } func (_m *ExecutableNode) OnGetResourcesMatch(matchers ...interface{}) *ExecutableNode_GetResources { - c := _m.On("GetResources", matchers...) - return &ExecutableNode_GetResources{Call: c} + c_call := _m.On("GetResources", matchers...) + return &ExecutableNode_GetResources{Call: c_call} } // GetResources provides a mock function with given fields: @@ -360,13 +360,13 @@ func (_m ExecutableNode_GetRetryStrategy) Return(_a0 *v1alpha1.RetryStrategy) *E } func (_m *ExecutableNode) OnGetRetryStrategy() *ExecutableNode_GetRetryStrategy { - c := _m.On("GetRetryStrategy") - return &ExecutableNode_GetRetryStrategy{Call: c} + c_call := _m.On("GetRetryStrategy") + return &ExecutableNode_GetRetryStrategy{Call: c_call} } func (_m *ExecutableNode) OnGetRetryStrategyMatch(matchers ...interface{}) *ExecutableNode_GetRetryStrategy { - c := _m.On("GetRetryStrategy", matchers...) - return &ExecutableNode_GetRetryStrategy{Call: c} + c_call := _m.On("GetRetryStrategy", matchers...) + return &ExecutableNode_GetRetryStrategy{Call: c_call} } // GetRetryStrategy provides a mock function with given fields: @@ -394,13 +394,13 @@ func (_m ExecutableNode_GetTaskID) Return(_a0 *string) *ExecutableNode_GetTaskID } func (_m *ExecutableNode) OnGetTaskID() *ExecutableNode_GetTaskID { - c := _m.On("GetTaskID") - return &ExecutableNode_GetTaskID{Call: c} + c_call := _m.On("GetTaskID") + return &ExecutableNode_GetTaskID{Call: c_call} } func (_m *ExecutableNode) OnGetTaskIDMatch(matchers ...interface{}) *ExecutableNode_GetTaskID { - c := _m.On("GetTaskID", matchers...) - return &ExecutableNode_GetTaskID{Call: c} + c_call := _m.On("GetTaskID", matchers...) + return &ExecutableNode_GetTaskID{Call: c_call} } // GetTaskID provides a mock function with given fields: @@ -428,13 +428,13 @@ func (_m ExecutableNode_GetWorkflowNode) Return(_a0 v1alpha1.ExecutableWorkflowN } func (_m *ExecutableNode) OnGetWorkflowNode() *ExecutableNode_GetWorkflowNode { - c := _m.On("GetWorkflowNode") - return &ExecutableNode_GetWorkflowNode{Call: c} + c_call := _m.On("GetWorkflowNode") + return &ExecutableNode_GetWorkflowNode{Call: c_call} } func (_m *ExecutableNode) OnGetWorkflowNodeMatch(matchers ...interface{}) *ExecutableNode_GetWorkflowNode { - c := _m.On("GetWorkflowNode", matchers...) - return &ExecutableNode_GetWorkflowNode{Call: c} + c_call := _m.On("GetWorkflowNode", matchers...) + return &ExecutableNode_GetWorkflowNode{Call: c_call} } // GetWorkflowNode provides a mock function with given fields: @@ -462,13 +462,13 @@ func (_m ExecutableNode_IsEndNode) Return(_a0 bool) *ExecutableNode_IsEndNode { } func (_m *ExecutableNode) OnIsEndNode() *ExecutableNode_IsEndNode { - c := _m.On("IsEndNode") - return &ExecutableNode_IsEndNode{Call: c} + c_call := _m.On("IsEndNode") + return &ExecutableNode_IsEndNode{Call: c_call} } func (_m *ExecutableNode) OnIsEndNodeMatch(matchers ...interface{}) *ExecutableNode_IsEndNode { - c := _m.On("IsEndNode", matchers...) - return &ExecutableNode_IsEndNode{Call: c} + c_call := _m.On("IsEndNode", matchers...) + return &ExecutableNode_IsEndNode{Call: c_call} } // IsEndNode provides a mock function with given fields: @@ -494,13 +494,13 @@ func (_m ExecutableNode_IsInterruptible) Return(_a0 *bool) *ExecutableNode_IsInt } func (_m *ExecutableNode) OnIsInterruptible() *ExecutableNode_IsInterruptible { - c := _m.On("IsInterruptible") - return &ExecutableNode_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible") + return &ExecutableNode_IsInterruptible{Call: c_call} } func (_m *ExecutableNode) OnIsInterruptibleMatch(matchers ...interface{}) *ExecutableNode_IsInterruptible { - c := _m.On("IsInterruptible", matchers...) - return &ExecutableNode_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible", matchers...) + return &ExecutableNode_IsInterruptible{Call: c_call} } // IsInterruptible provides a mock function with given fields: @@ -528,13 +528,13 @@ func (_m ExecutableNode_IsStartNode) Return(_a0 bool) *ExecutableNode_IsStartNod } func (_m *ExecutableNode) OnIsStartNode() *ExecutableNode_IsStartNode { - c := _m.On("IsStartNode") - return &ExecutableNode_IsStartNode{Call: c} + c_call := _m.On("IsStartNode") + return &ExecutableNode_IsStartNode{Call: c_call} } func (_m *ExecutableNode) OnIsStartNodeMatch(matchers ...interface{}) *ExecutableNode_IsStartNode { - c := _m.On("IsStartNode", matchers...) - return &ExecutableNode_IsStartNode{Call: c} + c_call := _m.On("IsStartNode", matchers...) + return &ExecutableNode_IsStartNode{Call: c_call} } // IsStartNode provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNodeStatus.go index 69c02aa835..a441a9cd4b 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableNodeStatus.go @@ -54,13 +54,13 @@ func (_m ExecutableNodeStatus_GetAttempts) Return(_a0 uint32) *ExecutableNodeSta } func (_m *ExecutableNodeStatus) OnGetAttempts() *ExecutableNodeStatus_GetAttempts { - c := _m.On("GetAttempts") - return &ExecutableNodeStatus_GetAttempts{Call: c} + c_call := _m.On("GetAttempts") + return &ExecutableNodeStatus_GetAttempts{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetAttemptsMatch(matchers ...interface{}) *ExecutableNodeStatus_GetAttempts { - c := _m.On("GetAttempts", matchers...) - return &ExecutableNodeStatus_GetAttempts{Call: c} + c_call := _m.On("GetAttempts", matchers...) + return &ExecutableNodeStatus_GetAttempts{Call: c_call} } // GetAttempts provides a mock function with given fields: @@ -86,13 +86,13 @@ func (_m ExecutableNodeStatus_GetBranchStatus) Return(_a0 v1alpha1.MutableBranch } func (_m *ExecutableNodeStatus) OnGetBranchStatus() *ExecutableNodeStatus_GetBranchStatus { - c := _m.On("GetBranchStatus") - return &ExecutableNodeStatus_GetBranchStatus{Call: c} + c_call := _m.On("GetBranchStatus") + return &ExecutableNodeStatus_GetBranchStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetBranchStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetBranchStatus { - c := _m.On("GetBranchStatus", matchers...) - return &ExecutableNodeStatus_GetBranchStatus{Call: c} + c_call := _m.On("GetBranchStatus", matchers...) + return &ExecutableNodeStatus_GetBranchStatus{Call: c_call} } // GetBranchStatus provides a mock function with given fields: @@ -120,13 +120,13 @@ func (_m ExecutableNodeStatus_GetDataDir) Return(_a0 storage.DataReference) *Exe } func (_m *ExecutableNodeStatus) OnGetDataDir() *ExecutableNodeStatus_GetDataDir { - c := _m.On("GetDataDir") - return &ExecutableNodeStatus_GetDataDir{Call: c} + c_call := _m.On("GetDataDir") + return &ExecutableNodeStatus_GetDataDir{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetDataDirMatch(matchers ...interface{}) *ExecutableNodeStatus_GetDataDir { - c := _m.On("GetDataDir", matchers...) - return &ExecutableNodeStatus_GetDataDir{Call: c} + c_call := _m.On("GetDataDir", matchers...) + return &ExecutableNodeStatus_GetDataDir{Call: c_call} } // GetDataDir provides a mock function with given fields: @@ -152,13 +152,13 @@ func (_m ExecutableNodeStatus_GetDynamicNodeStatus) Return(_a0 v1alpha1.MutableD } func (_m *ExecutableNodeStatus) OnGetDynamicNodeStatus() *ExecutableNodeStatus_GetDynamicNodeStatus { - c := _m.On("GetDynamicNodeStatus") - return &ExecutableNodeStatus_GetDynamicNodeStatus{Call: c} + c_call := _m.On("GetDynamicNodeStatus") + return &ExecutableNodeStatus_GetDynamicNodeStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetDynamicNodeStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetDynamicNodeStatus { - c := _m.On("GetDynamicNodeStatus", matchers...) - return &ExecutableNodeStatus_GetDynamicNodeStatus{Call: c} + c_call := _m.On("GetDynamicNodeStatus", matchers...) + return &ExecutableNodeStatus_GetDynamicNodeStatus{Call: c_call} } // GetDynamicNodeStatus provides a mock function with given fields: @@ -186,13 +186,13 @@ func (_m ExecutableNodeStatus_GetExecutionError) Return(_a0 *core.ExecutionError } func (_m *ExecutableNodeStatus) OnGetExecutionError() *ExecutableNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError") - return &ExecutableNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError") + return &ExecutableNodeStatus_GetExecutionError{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetExecutionErrorMatch(matchers ...interface{}) *ExecutableNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError", matchers...) - return &ExecutableNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError", matchers...) + return &ExecutableNodeStatus_GetExecutionError{Call: c_call} } // GetExecutionError provides a mock function with given fields: @@ -220,13 +220,13 @@ func (_m ExecutableNodeStatus_GetLastAttemptStartedAt) Return(_a0 *v1.Time) *Exe } func (_m *ExecutableNodeStatus) OnGetLastAttemptStartedAt() *ExecutableNodeStatus_GetLastAttemptStartedAt { - c := _m.On("GetLastAttemptStartedAt") - return &ExecutableNodeStatus_GetLastAttemptStartedAt{Call: c} + c_call := _m.On("GetLastAttemptStartedAt") + return &ExecutableNodeStatus_GetLastAttemptStartedAt{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetLastAttemptStartedAtMatch(matchers ...interface{}) *ExecutableNodeStatus_GetLastAttemptStartedAt { - c := _m.On("GetLastAttemptStartedAt", matchers...) - return &ExecutableNodeStatus_GetLastAttemptStartedAt{Call: c} + c_call := _m.On("GetLastAttemptStartedAt", matchers...) + return &ExecutableNodeStatus_GetLastAttemptStartedAt{Call: c_call} } // GetLastAttemptStartedAt provides a mock function with given fields: @@ -254,13 +254,13 @@ func (_m ExecutableNodeStatus_GetLastUpdatedAt) Return(_a0 *v1.Time) *Executable } func (_m *ExecutableNodeStatus) OnGetLastUpdatedAt() *ExecutableNodeStatus_GetLastUpdatedAt { - c := _m.On("GetLastUpdatedAt") - return &ExecutableNodeStatus_GetLastUpdatedAt{Call: c} + c_call := _m.On("GetLastUpdatedAt") + return &ExecutableNodeStatus_GetLastUpdatedAt{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetLastUpdatedAtMatch(matchers ...interface{}) *ExecutableNodeStatus_GetLastUpdatedAt { - c := _m.On("GetLastUpdatedAt", matchers...) - return &ExecutableNodeStatus_GetLastUpdatedAt{Call: c} + c_call := _m.On("GetLastUpdatedAt", matchers...) + return &ExecutableNodeStatus_GetLastUpdatedAt{Call: c_call} } // GetLastUpdatedAt provides a mock function with given fields: @@ -288,13 +288,13 @@ func (_m ExecutableNodeStatus_GetMessage) Return(_a0 string) *ExecutableNodeStat } func (_m *ExecutableNodeStatus) OnGetMessage() *ExecutableNodeStatus_GetMessage { - c := _m.On("GetMessage") - return &ExecutableNodeStatus_GetMessage{Call: c} + c_call := _m.On("GetMessage") + return &ExecutableNodeStatus_GetMessage{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetMessageMatch(matchers ...interface{}) *ExecutableNodeStatus_GetMessage { - c := _m.On("GetMessage", matchers...) - return &ExecutableNodeStatus_GetMessage{Call: c} + c_call := _m.On("GetMessage", matchers...) + return &ExecutableNodeStatus_GetMessage{Call: c_call} } // GetMessage provides a mock function with given fields: @@ -320,13 +320,13 @@ func (_m ExecutableNodeStatus_GetNodeExecutionStatus) Return(_a0 v1alpha1.Execut } func (_m *ExecutableNodeStatus) OnGetNodeExecutionStatus(ctx context.Context, id string) *ExecutableNodeStatus_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", ctx, id) - return &ExecutableNodeStatus_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", ctx, id) + return &ExecutableNodeStatus_GetNodeExecutionStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetNodeExecutionStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", matchers...) - return &ExecutableNodeStatus_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", matchers...) + return &ExecutableNodeStatus_GetNodeExecutionStatus{Call: c_call} } // GetNodeExecutionStatus provides a mock function with given fields: ctx, id @@ -354,13 +354,13 @@ func (_m ExecutableNodeStatus_GetOrCreateBranchStatus) Return(_a0 v1alpha1.Mutab } func (_m *ExecutableNodeStatus) OnGetOrCreateBranchStatus() *ExecutableNodeStatus_GetOrCreateBranchStatus { - c := _m.On("GetOrCreateBranchStatus") - return &ExecutableNodeStatus_GetOrCreateBranchStatus{Call: c} + c_call := _m.On("GetOrCreateBranchStatus") + return &ExecutableNodeStatus_GetOrCreateBranchStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetOrCreateBranchStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetOrCreateBranchStatus { - c := _m.On("GetOrCreateBranchStatus", matchers...) - return &ExecutableNodeStatus_GetOrCreateBranchStatus{Call: c} + c_call := _m.On("GetOrCreateBranchStatus", matchers...) + return &ExecutableNodeStatus_GetOrCreateBranchStatus{Call: c_call} } // GetOrCreateBranchStatus provides a mock function with given fields: @@ -388,13 +388,13 @@ func (_m ExecutableNodeStatus_GetOrCreateDynamicNodeStatus) Return(_a0 v1alpha1. } func (_m *ExecutableNodeStatus) OnGetOrCreateDynamicNodeStatus() *ExecutableNodeStatus_GetOrCreateDynamicNodeStatus { - c := _m.On("GetOrCreateDynamicNodeStatus") - return &ExecutableNodeStatus_GetOrCreateDynamicNodeStatus{Call: c} + c_call := _m.On("GetOrCreateDynamicNodeStatus") + return &ExecutableNodeStatus_GetOrCreateDynamicNodeStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetOrCreateDynamicNodeStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetOrCreateDynamicNodeStatus { - c := _m.On("GetOrCreateDynamicNodeStatus", matchers...) - return &ExecutableNodeStatus_GetOrCreateDynamicNodeStatus{Call: c} + c_call := _m.On("GetOrCreateDynamicNodeStatus", matchers...) + return &ExecutableNodeStatus_GetOrCreateDynamicNodeStatus{Call: c_call} } // GetOrCreateDynamicNodeStatus provides a mock function with given fields: @@ -422,13 +422,13 @@ func (_m ExecutableNodeStatus_GetOrCreateTaskStatus) Return(_a0 v1alpha1.Mutable } func (_m *ExecutableNodeStatus) OnGetOrCreateTaskStatus() *ExecutableNodeStatus_GetOrCreateTaskStatus { - c := _m.On("GetOrCreateTaskStatus") - return &ExecutableNodeStatus_GetOrCreateTaskStatus{Call: c} + c_call := _m.On("GetOrCreateTaskStatus") + return &ExecutableNodeStatus_GetOrCreateTaskStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetOrCreateTaskStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetOrCreateTaskStatus { - c := _m.On("GetOrCreateTaskStatus", matchers...) - return &ExecutableNodeStatus_GetOrCreateTaskStatus{Call: c} + c_call := _m.On("GetOrCreateTaskStatus", matchers...) + return &ExecutableNodeStatus_GetOrCreateTaskStatus{Call: c_call} } // GetOrCreateTaskStatus provides a mock function with given fields: @@ -456,13 +456,13 @@ func (_m ExecutableNodeStatus_GetOrCreateWorkflowStatus) Return(_a0 v1alpha1.Mut } func (_m *ExecutableNodeStatus) OnGetOrCreateWorkflowStatus() *ExecutableNodeStatus_GetOrCreateWorkflowStatus { - c := _m.On("GetOrCreateWorkflowStatus") - return &ExecutableNodeStatus_GetOrCreateWorkflowStatus{Call: c} + c_call := _m.On("GetOrCreateWorkflowStatus") + return &ExecutableNodeStatus_GetOrCreateWorkflowStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetOrCreateWorkflowStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetOrCreateWorkflowStatus { - c := _m.On("GetOrCreateWorkflowStatus", matchers...) - return &ExecutableNodeStatus_GetOrCreateWorkflowStatus{Call: c} + c_call := _m.On("GetOrCreateWorkflowStatus", matchers...) + return &ExecutableNodeStatus_GetOrCreateWorkflowStatus{Call: c_call} } // GetOrCreateWorkflowStatus provides a mock function with given fields: @@ -490,13 +490,13 @@ func (_m ExecutableNodeStatus_GetOutputDir) Return(_a0 storage.DataReference) *E } func (_m *ExecutableNodeStatus) OnGetOutputDir() *ExecutableNodeStatus_GetOutputDir { - c := _m.On("GetOutputDir") - return &ExecutableNodeStatus_GetOutputDir{Call: c} + c_call := _m.On("GetOutputDir") + return &ExecutableNodeStatus_GetOutputDir{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetOutputDirMatch(matchers ...interface{}) *ExecutableNodeStatus_GetOutputDir { - c := _m.On("GetOutputDir", matchers...) - return &ExecutableNodeStatus_GetOutputDir{Call: c} + c_call := _m.On("GetOutputDir", matchers...) + return &ExecutableNodeStatus_GetOutputDir{Call: c_call} } // GetOutputDir provides a mock function with given fields: @@ -522,13 +522,13 @@ func (_m ExecutableNodeStatus_GetParentNodeID) Return(_a0 *string) *ExecutableNo } func (_m *ExecutableNodeStatus) OnGetParentNodeID() *ExecutableNodeStatus_GetParentNodeID { - c := _m.On("GetParentNodeID") - return &ExecutableNodeStatus_GetParentNodeID{Call: c} + c_call := _m.On("GetParentNodeID") + return &ExecutableNodeStatus_GetParentNodeID{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetParentNodeIDMatch(matchers ...interface{}) *ExecutableNodeStatus_GetParentNodeID { - c := _m.On("GetParentNodeID", matchers...) - return &ExecutableNodeStatus_GetParentNodeID{Call: c} + c_call := _m.On("GetParentNodeID", matchers...) + return &ExecutableNodeStatus_GetParentNodeID{Call: c_call} } // GetParentNodeID provides a mock function with given fields: @@ -556,13 +556,13 @@ func (_m ExecutableNodeStatus_GetParentTaskID) Return(_a0 *core.TaskExecutionIde } func (_m *ExecutableNodeStatus) OnGetParentTaskID() *ExecutableNodeStatus_GetParentTaskID { - c := _m.On("GetParentTaskID") - return &ExecutableNodeStatus_GetParentTaskID{Call: c} + c_call := _m.On("GetParentTaskID") + return &ExecutableNodeStatus_GetParentTaskID{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetParentTaskIDMatch(matchers ...interface{}) *ExecutableNodeStatus_GetParentTaskID { - c := _m.On("GetParentTaskID", matchers...) - return &ExecutableNodeStatus_GetParentTaskID{Call: c} + c_call := _m.On("GetParentTaskID", matchers...) + return &ExecutableNodeStatus_GetParentTaskID{Call: c_call} } // GetParentTaskID provides a mock function with given fields: @@ -590,13 +590,13 @@ func (_m ExecutableNodeStatus_GetPhase) Return(_a0 v1alpha1.NodePhase) *Executab } func (_m *ExecutableNodeStatus) OnGetPhase() *ExecutableNodeStatus_GetPhase { - c := _m.On("GetPhase") - return &ExecutableNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase") + return &ExecutableNodeStatus_GetPhase{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetPhaseMatch(matchers ...interface{}) *ExecutableNodeStatus_GetPhase { - c := _m.On("GetPhase", matchers...) - return &ExecutableNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase", matchers...) + return &ExecutableNodeStatus_GetPhase{Call: c_call} } // GetPhase provides a mock function with given fields: @@ -622,13 +622,13 @@ func (_m ExecutableNodeStatus_GetQueuedAt) Return(_a0 *v1.Time) *ExecutableNodeS } func (_m *ExecutableNodeStatus) OnGetQueuedAt() *ExecutableNodeStatus_GetQueuedAt { - c := _m.On("GetQueuedAt") - return &ExecutableNodeStatus_GetQueuedAt{Call: c} + c_call := _m.On("GetQueuedAt") + return &ExecutableNodeStatus_GetQueuedAt{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetQueuedAtMatch(matchers ...interface{}) *ExecutableNodeStatus_GetQueuedAt { - c := _m.On("GetQueuedAt", matchers...) - return &ExecutableNodeStatus_GetQueuedAt{Call: c} + c_call := _m.On("GetQueuedAt", matchers...) + return &ExecutableNodeStatus_GetQueuedAt{Call: c_call} } // GetQueuedAt provides a mock function with given fields: @@ -656,13 +656,13 @@ func (_m ExecutableNodeStatus_GetStartedAt) Return(_a0 *v1.Time) *ExecutableNode } func (_m *ExecutableNodeStatus) OnGetStartedAt() *ExecutableNodeStatus_GetStartedAt { - c := _m.On("GetStartedAt") - return &ExecutableNodeStatus_GetStartedAt{Call: c} + c_call := _m.On("GetStartedAt") + return &ExecutableNodeStatus_GetStartedAt{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetStartedAtMatch(matchers ...interface{}) *ExecutableNodeStatus_GetStartedAt { - c := _m.On("GetStartedAt", matchers...) - return &ExecutableNodeStatus_GetStartedAt{Call: c} + c_call := _m.On("GetStartedAt", matchers...) + return &ExecutableNodeStatus_GetStartedAt{Call: c_call} } // GetStartedAt provides a mock function with given fields: @@ -690,13 +690,13 @@ func (_m ExecutableNodeStatus_GetStoppedAt) Return(_a0 *v1.Time) *ExecutableNode } func (_m *ExecutableNodeStatus) OnGetStoppedAt() *ExecutableNodeStatus_GetStoppedAt { - c := _m.On("GetStoppedAt") - return &ExecutableNodeStatus_GetStoppedAt{Call: c} + c_call := _m.On("GetStoppedAt") + return &ExecutableNodeStatus_GetStoppedAt{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetStoppedAtMatch(matchers ...interface{}) *ExecutableNodeStatus_GetStoppedAt { - c := _m.On("GetStoppedAt", matchers...) - return &ExecutableNodeStatus_GetStoppedAt{Call: c} + c_call := _m.On("GetStoppedAt", matchers...) + return &ExecutableNodeStatus_GetStoppedAt{Call: c_call} } // GetStoppedAt provides a mock function with given fields: @@ -724,13 +724,13 @@ func (_m ExecutableNodeStatus_GetSystemFailures) Return(_a0 uint32) *ExecutableN } func (_m *ExecutableNodeStatus) OnGetSystemFailures() *ExecutableNodeStatus_GetSystemFailures { - c := _m.On("GetSystemFailures") - return &ExecutableNodeStatus_GetSystemFailures{Call: c} + c_call := _m.On("GetSystemFailures") + return &ExecutableNodeStatus_GetSystemFailures{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetSystemFailuresMatch(matchers ...interface{}) *ExecutableNodeStatus_GetSystemFailures { - c := _m.On("GetSystemFailures", matchers...) - return &ExecutableNodeStatus_GetSystemFailures{Call: c} + c_call := _m.On("GetSystemFailures", matchers...) + return &ExecutableNodeStatus_GetSystemFailures{Call: c_call} } // GetSystemFailures provides a mock function with given fields: @@ -756,13 +756,13 @@ func (_m ExecutableNodeStatus_GetTaskNodeStatus) Return(_a0 v1alpha1.ExecutableT } func (_m *ExecutableNodeStatus) OnGetTaskNodeStatus() *ExecutableNodeStatus_GetTaskNodeStatus { - c := _m.On("GetTaskNodeStatus") - return &ExecutableNodeStatus_GetTaskNodeStatus{Call: c} + c_call := _m.On("GetTaskNodeStatus") + return &ExecutableNodeStatus_GetTaskNodeStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetTaskNodeStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetTaskNodeStatus { - c := _m.On("GetTaskNodeStatus", matchers...) - return &ExecutableNodeStatus_GetTaskNodeStatus{Call: c} + c_call := _m.On("GetTaskNodeStatus", matchers...) + return &ExecutableNodeStatus_GetTaskNodeStatus{Call: c_call} } // GetTaskNodeStatus provides a mock function with given fields: @@ -790,13 +790,13 @@ func (_m ExecutableNodeStatus_GetTaskStatus) Return(_a0 v1alpha1.MutableTaskNode } func (_m *ExecutableNodeStatus) OnGetTaskStatus() *ExecutableNodeStatus_GetTaskStatus { - c := _m.On("GetTaskStatus") - return &ExecutableNodeStatus_GetTaskStatus{Call: c} + c_call := _m.On("GetTaskStatus") + return &ExecutableNodeStatus_GetTaskStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetTaskStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetTaskStatus { - c := _m.On("GetTaskStatus", matchers...) - return &ExecutableNodeStatus_GetTaskStatus{Call: c} + c_call := _m.On("GetTaskStatus", matchers...) + return &ExecutableNodeStatus_GetTaskStatus{Call: c_call} } // GetTaskStatus provides a mock function with given fields: @@ -824,13 +824,13 @@ func (_m ExecutableNodeStatus_GetWorkflowNodeStatus) Return(_a0 v1alpha1.Executa } func (_m *ExecutableNodeStatus) OnGetWorkflowNodeStatus() *ExecutableNodeStatus_GetWorkflowNodeStatus { - c := _m.On("GetWorkflowNodeStatus") - return &ExecutableNodeStatus_GetWorkflowNodeStatus{Call: c} + c_call := _m.On("GetWorkflowNodeStatus") + return &ExecutableNodeStatus_GetWorkflowNodeStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetWorkflowNodeStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetWorkflowNodeStatus { - c := _m.On("GetWorkflowNodeStatus", matchers...) - return &ExecutableNodeStatus_GetWorkflowNodeStatus{Call: c} + c_call := _m.On("GetWorkflowNodeStatus", matchers...) + return &ExecutableNodeStatus_GetWorkflowNodeStatus{Call: c_call} } // GetWorkflowNodeStatus provides a mock function with given fields: @@ -858,13 +858,13 @@ func (_m ExecutableNodeStatus_GetWorkflowStatus) Return(_a0 v1alpha1.MutableWork } func (_m *ExecutableNodeStatus) OnGetWorkflowStatus() *ExecutableNodeStatus_GetWorkflowStatus { - c := _m.On("GetWorkflowStatus") - return &ExecutableNodeStatus_GetWorkflowStatus{Call: c} + c_call := _m.On("GetWorkflowStatus") + return &ExecutableNodeStatus_GetWorkflowStatus{Call: c_call} } func (_m *ExecutableNodeStatus) OnGetWorkflowStatusMatch(matchers ...interface{}) *ExecutableNodeStatus_GetWorkflowStatus { - c := _m.On("GetWorkflowStatus", matchers...) - return &ExecutableNodeStatus_GetWorkflowStatus{Call: c} + c_call := _m.On("GetWorkflowStatus", matchers...) + return &ExecutableNodeStatus_GetWorkflowStatus{Call: c_call} } // GetWorkflowStatus provides a mock function with given fields: @@ -892,13 +892,13 @@ func (_m ExecutableNodeStatus_IncrementAttempts) Return(_a0 uint32) *ExecutableN } func (_m *ExecutableNodeStatus) OnIncrementAttempts() *ExecutableNodeStatus_IncrementAttempts { - c := _m.On("IncrementAttempts") - return &ExecutableNodeStatus_IncrementAttempts{Call: c} + c_call := _m.On("IncrementAttempts") + return &ExecutableNodeStatus_IncrementAttempts{Call: c_call} } func (_m *ExecutableNodeStatus) OnIncrementAttemptsMatch(matchers ...interface{}) *ExecutableNodeStatus_IncrementAttempts { - c := _m.On("IncrementAttempts", matchers...) - return &ExecutableNodeStatus_IncrementAttempts{Call: c} + c_call := _m.On("IncrementAttempts", matchers...) + return &ExecutableNodeStatus_IncrementAttempts{Call: c_call} } // IncrementAttempts provides a mock function with given fields: @@ -924,13 +924,13 @@ func (_m ExecutableNodeStatus_IncrementSystemFailures) Return(_a0 uint32) *Execu } func (_m *ExecutableNodeStatus) OnIncrementSystemFailures() *ExecutableNodeStatus_IncrementSystemFailures { - c := _m.On("IncrementSystemFailures") - return &ExecutableNodeStatus_IncrementSystemFailures{Call: c} + c_call := _m.On("IncrementSystemFailures") + return &ExecutableNodeStatus_IncrementSystemFailures{Call: c_call} } func (_m *ExecutableNodeStatus) OnIncrementSystemFailuresMatch(matchers ...interface{}) *ExecutableNodeStatus_IncrementSystemFailures { - c := _m.On("IncrementSystemFailures", matchers...) - return &ExecutableNodeStatus_IncrementSystemFailures{Call: c} + c_call := _m.On("IncrementSystemFailures", matchers...) + return &ExecutableNodeStatus_IncrementSystemFailures{Call: c_call} } // IncrementSystemFailures provides a mock function with given fields: @@ -956,13 +956,13 @@ func (_m ExecutableNodeStatus_IsCached) Return(_a0 bool) *ExecutableNodeStatus_I } func (_m *ExecutableNodeStatus) OnIsCached() *ExecutableNodeStatus_IsCached { - c := _m.On("IsCached") - return &ExecutableNodeStatus_IsCached{Call: c} + c_call := _m.On("IsCached") + return &ExecutableNodeStatus_IsCached{Call: c_call} } func (_m *ExecutableNodeStatus) OnIsCachedMatch(matchers ...interface{}) *ExecutableNodeStatus_IsCached { - c := _m.On("IsCached", matchers...) - return &ExecutableNodeStatus_IsCached{Call: c} + c_call := _m.On("IsCached", matchers...) + return &ExecutableNodeStatus_IsCached{Call: c_call} } // IsCached provides a mock function with given fields: @@ -988,13 +988,13 @@ func (_m ExecutableNodeStatus_IsDirty) Return(_a0 bool) *ExecutableNodeStatus_Is } func (_m *ExecutableNodeStatus) OnIsDirty() *ExecutableNodeStatus_IsDirty { - c := _m.On("IsDirty") - return &ExecutableNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty") + return &ExecutableNodeStatus_IsDirty{Call: c_call} } func (_m *ExecutableNodeStatus) OnIsDirtyMatch(matchers ...interface{}) *ExecutableNodeStatus_IsDirty { - c := _m.On("IsDirty", matchers...) - return &ExecutableNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty", matchers...) + return &ExecutableNodeStatus_IsDirty{Call: c_call} } // IsDirty provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableSubWorkflow.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableSubWorkflow.go index 165fd1380a..0b09cf7483 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableSubWorkflow.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableSubWorkflow.go @@ -21,13 +21,13 @@ func (_m ExecutableSubWorkflow_FromNode) Return(_a0 []string, _a1 error) *Execut } func (_m *ExecutableSubWorkflow) OnFromNode(name string) *ExecutableSubWorkflow_FromNode { - c := _m.On("FromNode", name) - return &ExecutableSubWorkflow_FromNode{Call: c} + c_call := _m.On("FromNode", name) + return &ExecutableSubWorkflow_FromNode{Call: c_call} } func (_m *ExecutableSubWorkflow) OnFromNodeMatch(matchers ...interface{}) *ExecutableSubWorkflow_FromNode { - c := _m.On("FromNode", matchers...) - return &ExecutableSubWorkflow_FromNode{Call: c} + c_call := _m.On("FromNode", matchers...) + return &ExecutableSubWorkflow_FromNode{Call: c_call} } // FromNode provides a mock function with given fields: name @@ -62,13 +62,13 @@ func (_m ExecutableSubWorkflow_GetConnections) Return(_a0 *v1alpha1.Connections) } func (_m *ExecutableSubWorkflow) OnGetConnections() *ExecutableSubWorkflow_GetConnections { - c := _m.On("GetConnections") - return &ExecutableSubWorkflow_GetConnections{Call: c} + c_call := _m.On("GetConnections") + return &ExecutableSubWorkflow_GetConnections{Call: c_call} } func (_m *ExecutableSubWorkflow) OnGetConnectionsMatch(matchers ...interface{}) *ExecutableSubWorkflow_GetConnections { - c := _m.On("GetConnections", matchers...) - return &ExecutableSubWorkflow_GetConnections{Call: c} + c_call := _m.On("GetConnections", matchers...) + return &ExecutableSubWorkflow_GetConnections{Call: c_call} } // GetConnections provides a mock function with given fields: @@ -96,13 +96,13 @@ func (_m ExecutableSubWorkflow_GetID) Return(_a0 string) *ExecutableSubWorkflow_ } func (_m *ExecutableSubWorkflow) OnGetID() *ExecutableSubWorkflow_GetID { - c := _m.On("GetID") - return &ExecutableSubWorkflow_GetID{Call: c} + c_call := _m.On("GetID") + return &ExecutableSubWorkflow_GetID{Call: c_call} } func (_m *ExecutableSubWorkflow) OnGetIDMatch(matchers ...interface{}) *ExecutableSubWorkflow_GetID { - c := _m.On("GetID", matchers...) - return &ExecutableSubWorkflow_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &ExecutableSubWorkflow_GetID{Call: c_call} } // GetID provides a mock function with given fields: @@ -128,13 +128,13 @@ func (_m ExecutableSubWorkflow_GetNode) Return(_a0 v1alpha1.ExecutableNode, _a1 } func (_m *ExecutableSubWorkflow) OnGetNode(nodeID string) *ExecutableSubWorkflow_GetNode { - c := _m.On("GetNode", nodeID) - return &ExecutableSubWorkflow_GetNode{Call: c} + c_call := _m.On("GetNode", nodeID) + return &ExecutableSubWorkflow_GetNode{Call: c_call} } func (_m *ExecutableSubWorkflow) OnGetNodeMatch(matchers ...interface{}) *ExecutableSubWorkflow_GetNode { - c := _m.On("GetNode", matchers...) - return &ExecutableSubWorkflow_GetNode{Call: c} + c_call := _m.On("GetNode", matchers...) + return &ExecutableSubWorkflow_GetNode{Call: c_call} } // GetNode provides a mock function with given fields: nodeID @@ -169,13 +169,13 @@ func (_m ExecutableSubWorkflow_GetNodes) Return(_a0 []string) *ExecutableSubWork } func (_m *ExecutableSubWorkflow) OnGetNodes() *ExecutableSubWorkflow_GetNodes { - c := _m.On("GetNodes") - return &ExecutableSubWorkflow_GetNodes{Call: c} + c_call := _m.On("GetNodes") + return &ExecutableSubWorkflow_GetNodes{Call: c_call} } func (_m *ExecutableSubWorkflow) OnGetNodesMatch(matchers ...interface{}) *ExecutableSubWorkflow_GetNodes { - c := _m.On("GetNodes", matchers...) - return &ExecutableSubWorkflow_GetNodes{Call: c} + c_call := _m.On("GetNodes", matchers...) + return &ExecutableSubWorkflow_GetNodes{Call: c_call} } // GetNodes provides a mock function with given fields: @@ -203,13 +203,13 @@ func (_m ExecutableSubWorkflow_GetOnFailureNode) Return(_a0 v1alpha1.ExecutableN } func (_m *ExecutableSubWorkflow) OnGetOnFailureNode() *ExecutableSubWorkflow_GetOnFailureNode { - c := _m.On("GetOnFailureNode") - return &ExecutableSubWorkflow_GetOnFailureNode{Call: c} + c_call := _m.On("GetOnFailureNode") + return &ExecutableSubWorkflow_GetOnFailureNode{Call: c_call} } func (_m *ExecutableSubWorkflow) OnGetOnFailureNodeMatch(matchers ...interface{}) *ExecutableSubWorkflow_GetOnFailureNode { - c := _m.On("GetOnFailureNode", matchers...) - return &ExecutableSubWorkflow_GetOnFailureNode{Call: c} + c_call := _m.On("GetOnFailureNode", matchers...) + return &ExecutableSubWorkflow_GetOnFailureNode{Call: c_call} } // GetOnFailureNode provides a mock function with given fields: @@ -237,13 +237,13 @@ func (_m ExecutableSubWorkflow_GetOnFailurePolicy) Return(_a0 v1alpha1.WorkflowO } func (_m *ExecutableSubWorkflow) OnGetOnFailurePolicy() *ExecutableSubWorkflow_GetOnFailurePolicy { - c := _m.On("GetOnFailurePolicy") - return &ExecutableSubWorkflow_GetOnFailurePolicy{Call: c} + c_call := _m.On("GetOnFailurePolicy") + return &ExecutableSubWorkflow_GetOnFailurePolicy{Call: c_call} } func (_m *ExecutableSubWorkflow) OnGetOnFailurePolicyMatch(matchers ...interface{}) *ExecutableSubWorkflow_GetOnFailurePolicy { - c := _m.On("GetOnFailurePolicy", matchers...) - return &ExecutableSubWorkflow_GetOnFailurePolicy{Call: c} + c_call := _m.On("GetOnFailurePolicy", matchers...) + return &ExecutableSubWorkflow_GetOnFailurePolicy{Call: c_call} } // GetOnFailurePolicy provides a mock function with given fields: @@ -269,13 +269,13 @@ func (_m ExecutableSubWorkflow_GetOutputBindings) Return(_a0 []*v1alpha1.Binding } func (_m *ExecutableSubWorkflow) OnGetOutputBindings() *ExecutableSubWorkflow_GetOutputBindings { - c := _m.On("GetOutputBindings") - return &ExecutableSubWorkflow_GetOutputBindings{Call: c} + c_call := _m.On("GetOutputBindings") + return &ExecutableSubWorkflow_GetOutputBindings{Call: c_call} } func (_m *ExecutableSubWorkflow) OnGetOutputBindingsMatch(matchers ...interface{}) *ExecutableSubWorkflow_GetOutputBindings { - c := _m.On("GetOutputBindings", matchers...) - return &ExecutableSubWorkflow_GetOutputBindings{Call: c} + c_call := _m.On("GetOutputBindings", matchers...) + return &ExecutableSubWorkflow_GetOutputBindings{Call: c_call} } // GetOutputBindings provides a mock function with given fields: @@ -303,13 +303,13 @@ func (_m ExecutableSubWorkflow_GetOutputs) Return(_a0 *v1alpha1.OutputVarMap) *E } func (_m *ExecutableSubWorkflow) OnGetOutputs() *ExecutableSubWorkflow_GetOutputs { - c := _m.On("GetOutputs") - return &ExecutableSubWorkflow_GetOutputs{Call: c} + c_call := _m.On("GetOutputs") + return &ExecutableSubWorkflow_GetOutputs{Call: c_call} } func (_m *ExecutableSubWorkflow) OnGetOutputsMatch(matchers ...interface{}) *ExecutableSubWorkflow_GetOutputs { - c := _m.On("GetOutputs", matchers...) - return &ExecutableSubWorkflow_GetOutputs{Call: c} + c_call := _m.On("GetOutputs", matchers...) + return &ExecutableSubWorkflow_GetOutputs{Call: c_call} } // GetOutputs provides a mock function with given fields: @@ -337,13 +337,13 @@ func (_m ExecutableSubWorkflow_StartNode) Return(_a0 v1alpha1.ExecutableNode) *E } func (_m *ExecutableSubWorkflow) OnStartNode() *ExecutableSubWorkflow_StartNode { - c := _m.On("StartNode") - return &ExecutableSubWorkflow_StartNode{Call: c} + c_call := _m.On("StartNode") + return &ExecutableSubWorkflow_StartNode{Call: c_call} } func (_m *ExecutableSubWorkflow) OnStartNodeMatch(matchers ...interface{}) *ExecutableSubWorkflow_StartNode { - c := _m.On("StartNode", matchers...) - return &ExecutableSubWorkflow_StartNode{Call: c} + c_call := _m.On("StartNode", matchers...) + return &ExecutableSubWorkflow_StartNode{Call: c_call} } // StartNode provides a mock function with given fields: @@ -371,13 +371,13 @@ func (_m ExecutableSubWorkflow_ToNode) Return(_a0 []string, _a1 error) *Executab } func (_m *ExecutableSubWorkflow) OnToNode(name string) *ExecutableSubWorkflow_ToNode { - c := _m.On("ToNode", name) - return &ExecutableSubWorkflow_ToNode{Call: c} + c_call := _m.On("ToNode", name) + return &ExecutableSubWorkflow_ToNode{Call: c_call} } func (_m *ExecutableSubWorkflow) OnToNodeMatch(matchers ...interface{}) *ExecutableSubWorkflow_ToNode { - c := _m.On("ToNode", matchers...) - return &ExecutableSubWorkflow_ToNode{Call: c} + c_call := _m.On("ToNode", matchers...) + return &ExecutableSubWorkflow_ToNode{Call: c_call} } // ToNode provides a mock function with given fields: name diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableSubWorkflowNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableSubWorkflowNodeStatus.go index 9c901ef23a..0e7adc0f37 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableSubWorkflowNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableSubWorkflowNodeStatus.go @@ -21,13 +21,13 @@ func (_m ExecutableSubWorkflowNodeStatus_GetPhase) Return(_a0 v1alpha1.WorkflowP } func (_m *ExecutableSubWorkflowNodeStatus) OnGetPhase() *ExecutableSubWorkflowNodeStatus_GetPhase { - c := _m.On("GetPhase") - return &ExecutableSubWorkflowNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase") + return &ExecutableSubWorkflowNodeStatus_GetPhase{Call: c_call} } func (_m *ExecutableSubWorkflowNodeStatus) OnGetPhaseMatch(matchers ...interface{}) *ExecutableSubWorkflowNodeStatus_GetPhase { - c := _m.On("GetPhase", matchers...) - return &ExecutableSubWorkflowNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase", matchers...) + return &ExecutableSubWorkflowNodeStatus_GetPhase{Call: c_call} } // GetPhase provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableTask.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableTask.go index 2919bf723e..146c4117a4 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableTask.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableTask.go @@ -21,13 +21,13 @@ func (_m ExecutableTask_CoreTask) Return(_a0 *core.TaskTemplate) *ExecutableTask } func (_m *ExecutableTask) OnCoreTask() *ExecutableTask_CoreTask { - c := _m.On("CoreTask") - return &ExecutableTask_CoreTask{Call: c} + c_call := _m.On("CoreTask") + return &ExecutableTask_CoreTask{Call: c_call} } func (_m *ExecutableTask) OnCoreTaskMatch(matchers ...interface{}) *ExecutableTask_CoreTask { - c := _m.On("CoreTask", matchers...) - return &ExecutableTask_CoreTask{Call: c} + c_call := _m.On("CoreTask", matchers...) + return &ExecutableTask_CoreTask{Call: c_call} } // CoreTask provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m ExecutableTask_TaskType) Return(_a0 string) *ExecutableTask_TaskType { } func (_m *ExecutableTask) OnTaskType() *ExecutableTask_TaskType { - c := _m.On("TaskType") - return &ExecutableTask_TaskType{Call: c} + c_call := _m.On("TaskType") + return &ExecutableTask_TaskType{Call: c_call} } func (_m *ExecutableTask) OnTaskTypeMatch(matchers ...interface{}) *ExecutableTask_TaskType { - c := _m.On("TaskType", matchers...) - return &ExecutableTask_TaskType{Call: c} + c_call := _m.On("TaskType", matchers...) + return &ExecutableTask_TaskType{Call: c_call} } // TaskType provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableTaskNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableTaskNodeStatus.go index b7d5ba270c..e73e2df6dd 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableTaskNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableTaskNodeStatus.go @@ -22,13 +22,13 @@ func (_m ExecutableTaskNodeStatus_GetBarrierClockTick) Return(_a0 uint32) *Execu } func (_m *ExecutableTaskNodeStatus) OnGetBarrierClockTick() *ExecutableTaskNodeStatus_GetBarrierClockTick { - c := _m.On("GetBarrierClockTick") - return &ExecutableTaskNodeStatus_GetBarrierClockTick{Call: c} + c_call := _m.On("GetBarrierClockTick") + return &ExecutableTaskNodeStatus_GetBarrierClockTick{Call: c_call} } func (_m *ExecutableTaskNodeStatus) OnGetBarrierClockTickMatch(matchers ...interface{}) *ExecutableTaskNodeStatus_GetBarrierClockTick { - c := _m.On("GetBarrierClockTick", matchers...) - return &ExecutableTaskNodeStatus_GetBarrierClockTick{Call: c} + c_call := _m.On("GetBarrierClockTick", matchers...) + return &ExecutableTaskNodeStatus_GetBarrierClockTick{Call: c_call} } // GetBarrierClockTick provides a mock function with given fields: @@ -54,13 +54,13 @@ func (_m ExecutableTaskNodeStatus_GetLastPhaseUpdatedAt) Return(_a0 time.Time) * } func (_m *ExecutableTaskNodeStatus) OnGetLastPhaseUpdatedAt() *ExecutableTaskNodeStatus_GetLastPhaseUpdatedAt { - c := _m.On("GetLastPhaseUpdatedAt") - return &ExecutableTaskNodeStatus_GetLastPhaseUpdatedAt{Call: c} + c_call := _m.On("GetLastPhaseUpdatedAt") + return &ExecutableTaskNodeStatus_GetLastPhaseUpdatedAt{Call: c_call} } func (_m *ExecutableTaskNodeStatus) OnGetLastPhaseUpdatedAtMatch(matchers ...interface{}) *ExecutableTaskNodeStatus_GetLastPhaseUpdatedAt { - c := _m.On("GetLastPhaseUpdatedAt", matchers...) - return &ExecutableTaskNodeStatus_GetLastPhaseUpdatedAt{Call: c} + c_call := _m.On("GetLastPhaseUpdatedAt", matchers...) + return &ExecutableTaskNodeStatus_GetLastPhaseUpdatedAt{Call: c_call} } // GetLastPhaseUpdatedAt provides a mock function with given fields: @@ -86,13 +86,13 @@ func (_m ExecutableTaskNodeStatus_GetPhase) Return(_a0 int) *ExecutableTaskNodeS } func (_m *ExecutableTaskNodeStatus) OnGetPhase() *ExecutableTaskNodeStatus_GetPhase { - c := _m.On("GetPhase") - return &ExecutableTaskNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase") + return &ExecutableTaskNodeStatus_GetPhase{Call: c_call} } func (_m *ExecutableTaskNodeStatus) OnGetPhaseMatch(matchers ...interface{}) *ExecutableTaskNodeStatus_GetPhase { - c := _m.On("GetPhase", matchers...) - return &ExecutableTaskNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase", matchers...) + return &ExecutableTaskNodeStatus_GetPhase{Call: c_call} } // GetPhase provides a mock function with given fields: @@ -118,13 +118,13 @@ func (_m ExecutableTaskNodeStatus_GetPhaseVersion) Return(_a0 uint32) *Executabl } func (_m *ExecutableTaskNodeStatus) OnGetPhaseVersion() *ExecutableTaskNodeStatus_GetPhaseVersion { - c := _m.On("GetPhaseVersion") - return &ExecutableTaskNodeStatus_GetPhaseVersion{Call: c} + c_call := _m.On("GetPhaseVersion") + return &ExecutableTaskNodeStatus_GetPhaseVersion{Call: c_call} } func (_m *ExecutableTaskNodeStatus) OnGetPhaseVersionMatch(matchers ...interface{}) *ExecutableTaskNodeStatus_GetPhaseVersion { - c := _m.On("GetPhaseVersion", matchers...) - return &ExecutableTaskNodeStatus_GetPhaseVersion{Call: c} + c_call := _m.On("GetPhaseVersion", matchers...) + return &ExecutableTaskNodeStatus_GetPhaseVersion{Call: c_call} } // GetPhaseVersion provides a mock function with given fields: @@ -150,13 +150,13 @@ func (_m ExecutableTaskNodeStatus_GetPluginState) Return(_a0 []byte) *Executable } func (_m *ExecutableTaskNodeStatus) OnGetPluginState() *ExecutableTaskNodeStatus_GetPluginState { - c := _m.On("GetPluginState") - return &ExecutableTaskNodeStatus_GetPluginState{Call: c} + c_call := _m.On("GetPluginState") + return &ExecutableTaskNodeStatus_GetPluginState{Call: c_call} } func (_m *ExecutableTaskNodeStatus) OnGetPluginStateMatch(matchers ...interface{}) *ExecutableTaskNodeStatus_GetPluginState { - c := _m.On("GetPluginState", matchers...) - return &ExecutableTaskNodeStatus_GetPluginState{Call: c} + c_call := _m.On("GetPluginState", matchers...) + return &ExecutableTaskNodeStatus_GetPluginState{Call: c_call} } // GetPluginState provides a mock function with given fields: @@ -184,13 +184,13 @@ func (_m ExecutableTaskNodeStatus_GetPluginStateVersion) Return(_a0 uint32) *Exe } func (_m *ExecutableTaskNodeStatus) OnGetPluginStateVersion() *ExecutableTaskNodeStatus_GetPluginStateVersion { - c := _m.On("GetPluginStateVersion") - return &ExecutableTaskNodeStatus_GetPluginStateVersion{Call: c} + c_call := _m.On("GetPluginStateVersion") + return &ExecutableTaskNodeStatus_GetPluginStateVersion{Call: c_call} } func (_m *ExecutableTaskNodeStatus) OnGetPluginStateVersionMatch(matchers ...interface{}) *ExecutableTaskNodeStatus_GetPluginStateVersion { - c := _m.On("GetPluginStateVersion", matchers...) - return &ExecutableTaskNodeStatus_GetPluginStateVersion{Call: c} + c_call := _m.On("GetPluginStateVersion", matchers...) + return &ExecutableTaskNodeStatus_GetPluginStateVersion{Call: c_call} } // GetPluginStateVersion provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflow.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflow.go index 88593c0073..8a582f63e0 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflow.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflow.go @@ -29,13 +29,13 @@ func (_m ExecutableWorkflow_FindSubWorkflow) Return(_a0 v1alpha1.ExecutableSubWo } func (_m *ExecutableWorkflow) OnFindSubWorkflow(subID string) *ExecutableWorkflow_FindSubWorkflow { - c := _m.On("FindSubWorkflow", subID) - return &ExecutableWorkflow_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", subID) + return &ExecutableWorkflow_FindSubWorkflow{Call: c_call} } func (_m *ExecutableWorkflow) OnFindSubWorkflowMatch(matchers ...interface{}) *ExecutableWorkflow_FindSubWorkflow { - c := _m.On("FindSubWorkflow", matchers...) - return &ExecutableWorkflow_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", matchers...) + return &ExecutableWorkflow_FindSubWorkflow{Call: c_call} } // FindSubWorkflow provides a mock function with given fields: subID @@ -63,13 +63,13 @@ func (_m ExecutableWorkflow_FromNode) Return(_a0 []string, _a1 error) *Executabl } func (_m *ExecutableWorkflow) OnFromNode(name string) *ExecutableWorkflow_FromNode { - c := _m.On("FromNode", name) - return &ExecutableWorkflow_FromNode{Call: c} + c_call := _m.On("FromNode", name) + return &ExecutableWorkflow_FromNode{Call: c_call} } func (_m *ExecutableWorkflow) OnFromNodeMatch(matchers ...interface{}) *ExecutableWorkflow_FromNode { - c := _m.On("FromNode", matchers...) - return &ExecutableWorkflow_FromNode{Call: c} + c_call := _m.On("FromNode", matchers...) + return &ExecutableWorkflow_FromNode{Call: c_call} } // FromNode provides a mock function with given fields: name @@ -104,13 +104,13 @@ func (_m ExecutableWorkflow_GetAnnotations) Return(_a0 map[string]string) *Execu } func (_m *ExecutableWorkflow) OnGetAnnotations() *ExecutableWorkflow_GetAnnotations { - c := _m.On("GetAnnotations") - return &ExecutableWorkflow_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations") + return &ExecutableWorkflow_GetAnnotations{Call: c_call} } func (_m *ExecutableWorkflow) OnGetAnnotationsMatch(matchers ...interface{}) *ExecutableWorkflow_GetAnnotations { - c := _m.On("GetAnnotations", matchers...) - return &ExecutableWorkflow_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations", matchers...) + return &ExecutableWorkflow_GetAnnotations{Call: c_call} } // GetAnnotations provides a mock function with given fields: @@ -138,13 +138,13 @@ func (_m ExecutableWorkflow_GetConnections) Return(_a0 *v1alpha1.Connections) *E } func (_m *ExecutableWorkflow) OnGetConnections() *ExecutableWorkflow_GetConnections { - c := _m.On("GetConnections") - return &ExecutableWorkflow_GetConnections{Call: c} + c_call := _m.On("GetConnections") + return &ExecutableWorkflow_GetConnections{Call: c_call} } func (_m *ExecutableWorkflow) OnGetConnectionsMatch(matchers ...interface{}) *ExecutableWorkflow_GetConnections { - c := _m.On("GetConnections", matchers...) - return &ExecutableWorkflow_GetConnections{Call: c} + c_call := _m.On("GetConnections", matchers...) + return &ExecutableWorkflow_GetConnections{Call: c_call} } // GetConnections provides a mock function with given fields: @@ -172,13 +172,13 @@ func (_m ExecutableWorkflow_GetCreationTimestamp) Return(_a0 v1.Time) *Executabl } func (_m *ExecutableWorkflow) OnGetCreationTimestamp() *ExecutableWorkflow_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp") - return &ExecutableWorkflow_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp") + return &ExecutableWorkflow_GetCreationTimestamp{Call: c_call} } func (_m *ExecutableWorkflow) OnGetCreationTimestampMatch(matchers ...interface{}) *ExecutableWorkflow_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp", matchers...) - return &ExecutableWorkflow_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp", matchers...) + return &ExecutableWorkflow_GetCreationTimestamp{Call: c_call} } // GetCreationTimestamp provides a mock function with given fields: @@ -204,13 +204,13 @@ func (_m ExecutableWorkflow_GetEventVersion) Return(_a0 v1alpha1.EventVersion) * } func (_m *ExecutableWorkflow) OnGetEventVersion() *ExecutableWorkflow_GetEventVersion { - c := _m.On("GetEventVersion") - return &ExecutableWorkflow_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion") + return &ExecutableWorkflow_GetEventVersion{Call: c_call} } func (_m *ExecutableWorkflow) OnGetEventVersionMatch(matchers ...interface{}) *ExecutableWorkflow_GetEventVersion { - c := _m.On("GetEventVersion", matchers...) - return &ExecutableWorkflow_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion", matchers...) + return &ExecutableWorkflow_GetEventVersion{Call: c_call} } // GetEventVersion provides a mock function with given fields: @@ -236,13 +236,13 @@ func (_m ExecutableWorkflow_GetExecutionConfig) Return(_a0 v1alpha1.ExecutionCon } func (_m *ExecutableWorkflow) OnGetExecutionConfig() *ExecutableWorkflow_GetExecutionConfig { - c := _m.On("GetExecutionConfig") - return &ExecutableWorkflow_GetExecutionConfig{Call: c} + c_call := _m.On("GetExecutionConfig") + return &ExecutableWorkflow_GetExecutionConfig{Call: c_call} } func (_m *ExecutableWorkflow) OnGetExecutionConfigMatch(matchers ...interface{}) *ExecutableWorkflow_GetExecutionConfig { - c := _m.On("GetExecutionConfig", matchers...) - return &ExecutableWorkflow_GetExecutionConfig{Call: c} + c_call := _m.On("GetExecutionConfig", matchers...) + return &ExecutableWorkflow_GetExecutionConfig{Call: c_call} } // GetExecutionConfig provides a mock function with given fields: @@ -268,13 +268,13 @@ func (_m ExecutableWorkflow_GetExecutionID) Return(_a0 v1alpha1.WorkflowExecutio } func (_m *ExecutableWorkflow) OnGetExecutionID() *ExecutableWorkflow_GetExecutionID { - c := _m.On("GetExecutionID") - return &ExecutableWorkflow_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID") + return &ExecutableWorkflow_GetExecutionID{Call: c_call} } func (_m *ExecutableWorkflow) OnGetExecutionIDMatch(matchers ...interface{}) *ExecutableWorkflow_GetExecutionID { - c := _m.On("GetExecutionID", matchers...) - return &ExecutableWorkflow_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID", matchers...) + return &ExecutableWorkflow_GetExecutionID{Call: c_call} } // GetExecutionID provides a mock function with given fields: @@ -300,13 +300,13 @@ func (_m ExecutableWorkflow_GetExecutionStatus) Return(_a0 v1alpha1.ExecutableWo } func (_m *ExecutableWorkflow) OnGetExecutionStatus() *ExecutableWorkflow_GetExecutionStatus { - c := _m.On("GetExecutionStatus") - return &ExecutableWorkflow_GetExecutionStatus{Call: c} + c_call := _m.On("GetExecutionStatus") + return &ExecutableWorkflow_GetExecutionStatus{Call: c_call} } func (_m *ExecutableWorkflow) OnGetExecutionStatusMatch(matchers ...interface{}) *ExecutableWorkflow_GetExecutionStatus { - c := _m.On("GetExecutionStatus", matchers...) - return &ExecutableWorkflow_GetExecutionStatus{Call: c} + c_call := _m.On("GetExecutionStatus", matchers...) + return &ExecutableWorkflow_GetExecutionStatus{Call: c_call} } // GetExecutionStatus provides a mock function with given fields: @@ -334,13 +334,13 @@ func (_m ExecutableWorkflow_GetID) Return(_a0 string) *ExecutableWorkflow_GetID } func (_m *ExecutableWorkflow) OnGetID() *ExecutableWorkflow_GetID { - c := _m.On("GetID") - return &ExecutableWorkflow_GetID{Call: c} + c_call := _m.On("GetID") + return &ExecutableWorkflow_GetID{Call: c_call} } func (_m *ExecutableWorkflow) OnGetIDMatch(matchers ...interface{}) *ExecutableWorkflow_GetID { - c := _m.On("GetID", matchers...) - return &ExecutableWorkflow_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &ExecutableWorkflow_GetID{Call: c_call} } // GetID provides a mock function with given fields: @@ -366,13 +366,13 @@ func (_m ExecutableWorkflow_GetK8sWorkflowID) Return(_a0 types.NamespacedName) * } func (_m *ExecutableWorkflow) OnGetK8sWorkflowID() *ExecutableWorkflow_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID") - return &ExecutableWorkflow_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID") + return &ExecutableWorkflow_GetK8sWorkflowID{Call: c_call} } func (_m *ExecutableWorkflow) OnGetK8sWorkflowIDMatch(matchers ...interface{}) *ExecutableWorkflow_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID", matchers...) - return &ExecutableWorkflow_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID", matchers...) + return &ExecutableWorkflow_GetK8sWorkflowID{Call: c_call} } // GetK8sWorkflowID provides a mock function with given fields: @@ -398,13 +398,13 @@ func (_m ExecutableWorkflow_GetLabels) Return(_a0 map[string]string) *Executable } func (_m *ExecutableWorkflow) OnGetLabels() *ExecutableWorkflow_GetLabels { - c := _m.On("GetLabels") - return &ExecutableWorkflow_GetLabels{Call: c} + c_call := _m.On("GetLabels") + return &ExecutableWorkflow_GetLabels{Call: c_call} } func (_m *ExecutableWorkflow) OnGetLabelsMatch(matchers ...interface{}) *ExecutableWorkflow_GetLabels { - c := _m.On("GetLabels", matchers...) - return &ExecutableWorkflow_GetLabels{Call: c} + c_call := _m.On("GetLabels", matchers...) + return &ExecutableWorkflow_GetLabels{Call: c_call} } // GetLabels provides a mock function with given fields: @@ -432,13 +432,13 @@ func (_m ExecutableWorkflow_GetName) Return(_a0 string) *ExecutableWorkflow_GetN } func (_m *ExecutableWorkflow) OnGetName() *ExecutableWorkflow_GetName { - c := _m.On("GetName") - return &ExecutableWorkflow_GetName{Call: c} + c_call := _m.On("GetName") + return &ExecutableWorkflow_GetName{Call: c_call} } func (_m *ExecutableWorkflow) OnGetNameMatch(matchers ...interface{}) *ExecutableWorkflow_GetName { - c := _m.On("GetName", matchers...) - return &ExecutableWorkflow_GetName{Call: c} + c_call := _m.On("GetName", matchers...) + return &ExecutableWorkflow_GetName{Call: c_call} } // GetName provides a mock function with given fields: @@ -464,13 +464,13 @@ func (_m ExecutableWorkflow_GetNamespace) Return(_a0 string) *ExecutableWorkflow } func (_m *ExecutableWorkflow) OnGetNamespace() *ExecutableWorkflow_GetNamespace { - c := _m.On("GetNamespace") - return &ExecutableWorkflow_GetNamespace{Call: c} + c_call := _m.On("GetNamespace") + return &ExecutableWorkflow_GetNamespace{Call: c_call} } func (_m *ExecutableWorkflow) OnGetNamespaceMatch(matchers ...interface{}) *ExecutableWorkflow_GetNamespace { - c := _m.On("GetNamespace", matchers...) - return &ExecutableWorkflow_GetNamespace{Call: c} + c_call := _m.On("GetNamespace", matchers...) + return &ExecutableWorkflow_GetNamespace{Call: c_call} } // GetNamespace provides a mock function with given fields: @@ -496,13 +496,13 @@ func (_m ExecutableWorkflow_GetNode) Return(_a0 v1alpha1.ExecutableNode, _a1 boo } func (_m *ExecutableWorkflow) OnGetNode(nodeID string) *ExecutableWorkflow_GetNode { - c := _m.On("GetNode", nodeID) - return &ExecutableWorkflow_GetNode{Call: c} + c_call := _m.On("GetNode", nodeID) + return &ExecutableWorkflow_GetNode{Call: c_call} } func (_m *ExecutableWorkflow) OnGetNodeMatch(matchers ...interface{}) *ExecutableWorkflow_GetNode { - c := _m.On("GetNode", matchers...) - return &ExecutableWorkflow_GetNode{Call: c} + c_call := _m.On("GetNode", matchers...) + return &ExecutableWorkflow_GetNode{Call: c_call} } // GetNode provides a mock function with given fields: nodeID @@ -537,13 +537,13 @@ func (_m ExecutableWorkflow_GetNodeExecutionStatus) Return(_a0 v1alpha1.Executab } func (_m *ExecutableWorkflow) OnGetNodeExecutionStatus(ctx context.Context, id string) *ExecutableWorkflow_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", ctx, id) - return &ExecutableWorkflow_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", ctx, id) + return &ExecutableWorkflow_GetNodeExecutionStatus{Call: c_call} } func (_m *ExecutableWorkflow) OnGetNodeExecutionStatusMatch(matchers ...interface{}) *ExecutableWorkflow_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", matchers...) - return &ExecutableWorkflow_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", matchers...) + return &ExecutableWorkflow_GetNodeExecutionStatus{Call: c_call} } // GetNodeExecutionStatus provides a mock function with given fields: ctx, id @@ -571,13 +571,13 @@ func (_m ExecutableWorkflow_GetNodes) Return(_a0 []string) *ExecutableWorkflow_G } func (_m *ExecutableWorkflow) OnGetNodes() *ExecutableWorkflow_GetNodes { - c := _m.On("GetNodes") - return &ExecutableWorkflow_GetNodes{Call: c} + c_call := _m.On("GetNodes") + return &ExecutableWorkflow_GetNodes{Call: c_call} } func (_m *ExecutableWorkflow) OnGetNodesMatch(matchers ...interface{}) *ExecutableWorkflow_GetNodes { - c := _m.On("GetNodes", matchers...) - return &ExecutableWorkflow_GetNodes{Call: c} + c_call := _m.On("GetNodes", matchers...) + return &ExecutableWorkflow_GetNodes{Call: c_call} } // GetNodes provides a mock function with given fields: @@ -605,13 +605,13 @@ func (_m ExecutableWorkflow_GetOnFailureNode) Return(_a0 v1alpha1.ExecutableNode } func (_m *ExecutableWorkflow) OnGetOnFailureNode() *ExecutableWorkflow_GetOnFailureNode { - c := _m.On("GetOnFailureNode") - return &ExecutableWorkflow_GetOnFailureNode{Call: c} + c_call := _m.On("GetOnFailureNode") + return &ExecutableWorkflow_GetOnFailureNode{Call: c_call} } func (_m *ExecutableWorkflow) OnGetOnFailureNodeMatch(matchers ...interface{}) *ExecutableWorkflow_GetOnFailureNode { - c := _m.On("GetOnFailureNode", matchers...) - return &ExecutableWorkflow_GetOnFailureNode{Call: c} + c_call := _m.On("GetOnFailureNode", matchers...) + return &ExecutableWorkflow_GetOnFailureNode{Call: c_call} } // GetOnFailureNode provides a mock function with given fields: @@ -639,13 +639,13 @@ func (_m ExecutableWorkflow_GetOnFailurePolicy) Return(_a0 v1alpha1.WorkflowOnFa } func (_m *ExecutableWorkflow) OnGetOnFailurePolicy() *ExecutableWorkflow_GetOnFailurePolicy { - c := _m.On("GetOnFailurePolicy") - return &ExecutableWorkflow_GetOnFailurePolicy{Call: c} + c_call := _m.On("GetOnFailurePolicy") + return &ExecutableWorkflow_GetOnFailurePolicy{Call: c_call} } func (_m *ExecutableWorkflow) OnGetOnFailurePolicyMatch(matchers ...interface{}) *ExecutableWorkflow_GetOnFailurePolicy { - c := _m.On("GetOnFailurePolicy", matchers...) - return &ExecutableWorkflow_GetOnFailurePolicy{Call: c} + c_call := _m.On("GetOnFailurePolicy", matchers...) + return &ExecutableWorkflow_GetOnFailurePolicy{Call: c_call} } // GetOnFailurePolicy provides a mock function with given fields: @@ -671,13 +671,13 @@ func (_m ExecutableWorkflow_GetOutputBindings) Return(_a0 []*v1alpha1.Binding) * } func (_m *ExecutableWorkflow) OnGetOutputBindings() *ExecutableWorkflow_GetOutputBindings { - c := _m.On("GetOutputBindings") - return &ExecutableWorkflow_GetOutputBindings{Call: c} + c_call := _m.On("GetOutputBindings") + return &ExecutableWorkflow_GetOutputBindings{Call: c_call} } func (_m *ExecutableWorkflow) OnGetOutputBindingsMatch(matchers ...interface{}) *ExecutableWorkflow_GetOutputBindings { - c := _m.On("GetOutputBindings", matchers...) - return &ExecutableWorkflow_GetOutputBindings{Call: c} + c_call := _m.On("GetOutputBindings", matchers...) + return &ExecutableWorkflow_GetOutputBindings{Call: c_call} } // GetOutputBindings provides a mock function with given fields: @@ -705,13 +705,13 @@ func (_m ExecutableWorkflow_GetOutputs) Return(_a0 *v1alpha1.OutputVarMap) *Exec } func (_m *ExecutableWorkflow) OnGetOutputs() *ExecutableWorkflow_GetOutputs { - c := _m.On("GetOutputs") - return &ExecutableWorkflow_GetOutputs{Call: c} + c_call := _m.On("GetOutputs") + return &ExecutableWorkflow_GetOutputs{Call: c_call} } func (_m *ExecutableWorkflow) OnGetOutputsMatch(matchers ...interface{}) *ExecutableWorkflow_GetOutputs { - c := _m.On("GetOutputs", matchers...) - return &ExecutableWorkflow_GetOutputs{Call: c} + c_call := _m.On("GetOutputs", matchers...) + return &ExecutableWorkflow_GetOutputs{Call: c_call} } // GetOutputs provides a mock function with given fields: @@ -739,13 +739,13 @@ func (_m ExecutableWorkflow_GetOwnerReference) Return(_a0 v1.OwnerReference) *Ex } func (_m *ExecutableWorkflow) OnGetOwnerReference() *ExecutableWorkflow_GetOwnerReference { - c := _m.On("GetOwnerReference") - return &ExecutableWorkflow_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference") + return &ExecutableWorkflow_GetOwnerReference{Call: c_call} } func (_m *ExecutableWorkflow) OnGetOwnerReferenceMatch(matchers ...interface{}) *ExecutableWorkflow_GetOwnerReference { - c := _m.On("GetOwnerReference", matchers...) - return &ExecutableWorkflow_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference", matchers...) + return &ExecutableWorkflow_GetOwnerReference{Call: c_call} } // GetOwnerReference provides a mock function with given fields: @@ -771,13 +771,13 @@ func (_m ExecutableWorkflow_GetRawOutputDataConfig) Return(_a0 v1alpha1.RawOutpu } func (_m *ExecutableWorkflow) OnGetRawOutputDataConfig() *ExecutableWorkflow_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig") - return &ExecutableWorkflow_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig") + return &ExecutableWorkflow_GetRawOutputDataConfig{Call: c_call} } func (_m *ExecutableWorkflow) OnGetRawOutputDataConfigMatch(matchers ...interface{}) *ExecutableWorkflow_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig", matchers...) - return &ExecutableWorkflow_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig", matchers...) + return &ExecutableWorkflow_GetRawOutputDataConfig{Call: c_call} } // GetRawOutputDataConfig provides a mock function with given fields: @@ -803,13 +803,13 @@ func (_m ExecutableWorkflow_GetSecurityContext) Return(_a0 core.SecurityContext) } func (_m *ExecutableWorkflow) OnGetSecurityContext() *ExecutableWorkflow_GetSecurityContext { - c := _m.On("GetSecurityContext") - return &ExecutableWorkflow_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext") + return &ExecutableWorkflow_GetSecurityContext{Call: c_call} } func (_m *ExecutableWorkflow) OnGetSecurityContextMatch(matchers ...interface{}) *ExecutableWorkflow_GetSecurityContext { - c := _m.On("GetSecurityContext", matchers...) - return &ExecutableWorkflow_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext", matchers...) + return &ExecutableWorkflow_GetSecurityContext{Call: c_call} } // GetSecurityContext provides a mock function with given fields: @@ -835,13 +835,13 @@ func (_m ExecutableWorkflow_GetServiceAccountName) Return(_a0 string) *Executabl } func (_m *ExecutableWorkflow) OnGetServiceAccountName() *ExecutableWorkflow_GetServiceAccountName { - c := _m.On("GetServiceAccountName") - return &ExecutableWorkflow_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName") + return &ExecutableWorkflow_GetServiceAccountName{Call: c_call} } func (_m *ExecutableWorkflow) OnGetServiceAccountNameMatch(matchers ...interface{}) *ExecutableWorkflow_GetServiceAccountName { - c := _m.On("GetServiceAccountName", matchers...) - return &ExecutableWorkflow_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName", matchers...) + return &ExecutableWorkflow_GetServiceAccountName{Call: c_call} } // GetServiceAccountName provides a mock function with given fields: @@ -867,13 +867,13 @@ func (_m ExecutableWorkflow_GetTask) Return(_a0 v1alpha1.ExecutableTask, _a1 err } func (_m *ExecutableWorkflow) OnGetTask(id string) *ExecutableWorkflow_GetTask { - c := _m.On("GetTask", id) - return &ExecutableWorkflow_GetTask{Call: c} + c_call := _m.On("GetTask", id) + return &ExecutableWorkflow_GetTask{Call: c_call} } func (_m *ExecutableWorkflow) OnGetTaskMatch(matchers ...interface{}) *ExecutableWorkflow_GetTask { - c := _m.On("GetTask", matchers...) - return &ExecutableWorkflow_GetTask{Call: c} + c_call := _m.On("GetTask", matchers...) + return &ExecutableWorkflow_GetTask{Call: c_call} } // GetTask provides a mock function with given fields: id @@ -908,13 +908,13 @@ func (_m ExecutableWorkflow_IsInterruptible) Return(_a0 bool) *ExecutableWorkflo } func (_m *ExecutableWorkflow) OnIsInterruptible() *ExecutableWorkflow_IsInterruptible { - c := _m.On("IsInterruptible") - return &ExecutableWorkflow_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible") + return &ExecutableWorkflow_IsInterruptible{Call: c_call} } func (_m *ExecutableWorkflow) OnIsInterruptibleMatch(matchers ...interface{}) *ExecutableWorkflow_IsInterruptible { - c := _m.On("IsInterruptible", matchers...) - return &ExecutableWorkflow_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible", matchers...) + return &ExecutableWorkflow_IsInterruptible{Call: c_call} } // IsInterruptible provides a mock function with given fields: @@ -940,13 +940,13 @@ func (_m ExecutableWorkflow_StartNode) Return(_a0 v1alpha1.ExecutableNode) *Exec } func (_m *ExecutableWorkflow) OnStartNode() *ExecutableWorkflow_StartNode { - c := _m.On("StartNode") - return &ExecutableWorkflow_StartNode{Call: c} + c_call := _m.On("StartNode") + return &ExecutableWorkflow_StartNode{Call: c_call} } func (_m *ExecutableWorkflow) OnStartNodeMatch(matchers ...interface{}) *ExecutableWorkflow_StartNode { - c := _m.On("StartNode", matchers...) - return &ExecutableWorkflow_StartNode{Call: c} + c_call := _m.On("StartNode", matchers...) + return &ExecutableWorkflow_StartNode{Call: c_call} } // StartNode provides a mock function with given fields: @@ -974,13 +974,13 @@ func (_m ExecutableWorkflow_ToNode) Return(_a0 []string, _a1 error) *ExecutableW } func (_m *ExecutableWorkflow) OnToNode(name string) *ExecutableWorkflow_ToNode { - c := _m.On("ToNode", name) - return &ExecutableWorkflow_ToNode{Call: c} + c_call := _m.On("ToNode", name) + return &ExecutableWorkflow_ToNode{Call: c_call} } func (_m *ExecutableWorkflow) OnToNodeMatch(matchers ...interface{}) *ExecutableWorkflow_ToNode { - c := _m.On("ToNode", matchers...) - return &ExecutableWorkflow_ToNode{Call: c} + c_call := _m.On("ToNode", matchers...) + return &ExecutableWorkflow_ToNode{Call: c_call} } // ToNode provides a mock function with given fields: name diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowNode.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowNode.go index b23a8198ef..f033cda946 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowNode.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowNode.go @@ -21,13 +21,13 @@ func (_m ExecutableWorkflowNode_GetLaunchPlanRefID) Return(_a0 *v1alpha1.Identif } func (_m *ExecutableWorkflowNode) OnGetLaunchPlanRefID() *ExecutableWorkflowNode_GetLaunchPlanRefID { - c := _m.On("GetLaunchPlanRefID") - return &ExecutableWorkflowNode_GetLaunchPlanRefID{Call: c} + c_call := _m.On("GetLaunchPlanRefID") + return &ExecutableWorkflowNode_GetLaunchPlanRefID{Call: c_call} } func (_m *ExecutableWorkflowNode) OnGetLaunchPlanRefIDMatch(matchers ...interface{}) *ExecutableWorkflowNode_GetLaunchPlanRefID { - c := _m.On("GetLaunchPlanRefID", matchers...) - return &ExecutableWorkflowNode_GetLaunchPlanRefID{Call: c} + c_call := _m.On("GetLaunchPlanRefID", matchers...) + return &ExecutableWorkflowNode_GetLaunchPlanRefID{Call: c_call} } // GetLaunchPlanRefID provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m ExecutableWorkflowNode_GetSubWorkflowRef) Return(_a0 *string) *Executab } func (_m *ExecutableWorkflowNode) OnGetSubWorkflowRef() *ExecutableWorkflowNode_GetSubWorkflowRef { - c := _m.On("GetSubWorkflowRef") - return &ExecutableWorkflowNode_GetSubWorkflowRef{Call: c} + c_call := _m.On("GetSubWorkflowRef") + return &ExecutableWorkflowNode_GetSubWorkflowRef{Call: c_call} } func (_m *ExecutableWorkflowNode) OnGetSubWorkflowRefMatch(matchers ...interface{}) *ExecutableWorkflowNode_GetSubWorkflowRef { - c := _m.On("GetSubWorkflowRef", matchers...) - return &ExecutableWorkflowNode_GetSubWorkflowRef{Call: c} + c_call := _m.On("GetSubWorkflowRef", matchers...) + return &ExecutableWorkflowNode_GetSubWorkflowRef{Call: c_call} } // GetSubWorkflowRef provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowNodeStatus.go index c1d3b3beab..52c7cf6c9b 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowNodeStatus.go @@ -23,13 +23,13 @@ func (_m ExecutableWorkflowNodeStatus_GetExecutionError) Return(_a0 *core.Execut } func (_m *ExecutableWorkflowNodeStatus) OnGetExecutionError() *ExecutableWorkflowNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError") - return &ExecutableWorkflowNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError") + return &ExecutableWorkflowNodeStatus_GetExecutionError{Call: c_call} } func (_m *ExecutableWorkflowNodeStatus) OnGetExecutionErrorMatch(matchers ...interface{}) *ExecutableWorkflowNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError", matchers...) - return &ExecutableWorkflowNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError", matchers...) + return &ExecutableWorkflowNodeStatus_GetExecutionError{Call: c_call} } // GetExecutionError provides a mock function with given fields: @@ -57,13 +57,13 @@ func (_m ExecutableWorkflowNodeStatus_GetWorkflowNodePhase) Return(_a0 v1alpha1. } func (_m *ExecutableWorkflowNodeStatus) OnGetWorkflowNodePhase() *ExecutableWorkflowNodeStatus_GetWorkflowNodePhase { - c := _m.On("GetWorkflowNodePhase") - return &ExecutableWorkflowNodeStatus_GetWorkflowNodePhase{Call: c} + c_call := _m.On("GetWorkflowNodePhase") + return &ExecutableWorkflowNodeStatus_GetWorkflowNodePhase{Call: c_call} } func (_m *ExecutableWorkflowNodeStatus) OnGetWorkflowNodePhaseMatch(matchers ...interface{}) *ExecutableWorkflowNodeStatus_GetWorkflowNodePhase { - c := _m.On("GetWorkflowNodePhase", matchers...) - return &ExecutableWorkflowNodeStatus_GetWorkflowNodePhase{Call: c} + c_call := _m.On("GetWorkflowNodePhase", matchers...) + return &ExecutableWorkflowNodeStatus_GetWorkflowNodePhase{Call: c_call} } // GetWorkflowNodePhase provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowStatus.go index 7896f2eeb1..cab458f650 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutableWorkflowStatus.go @@ -29,13 +29,13 @@ func (_m ExecutableWorkflowStatus_ConstructNodeDataDir) Return(_a0 storage.DataR } func (_m *ExecutableWorkflowStatus) OnConstructNodeDataDir(ctx context.Context, name string) *ExecutableWorkflowStatus_ConstructNodeDataDir { - c := _m.On("ConstructNodeDataDir", ctx, name) - return &ExecutableWorkflowStatus_ConstructNodeDataDir{Call: c} + c_call := _m.On("ConstructNodeDataDir", ctx, name) + return &ExecutableWorkflowStatus_ConstructNodeDataDir{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnConstructNodeDataDirMatch(matchers ...interface{}) *ExecutableWorkflowStatus_ConstructNodeDataDir { - c := _m.On("ConstructNodeDataDir", matchers...) - return &ExecutableWorkflowStatus_ConstructNodeDataDir{Call: c} + c_call := _m.On("ConstructNodeDataDir", matchers...) + return &ExecutableWorkflowStatus_ConstructNodeDataDir{Call: c_call} } // ConstructNodeDataDir provides a mock function with given fields: ctx, name @@ -68,13 +68,13 @@ func (_m ExecutableWorkflowStatus_GetDataDir) Return(_a0 storage.DataReference) } func (_m *ExecutableWorkflowStatus) OnGetDataDir() *ExecutableWorkflowStatus_GetDataDir { - c := _m.On("GetDataDir") - return &ExecutableWorkflowStatus_GetDataDir{Call: c} + c_call := _m.On("GetDataDir") + return &ExecutableWorkflowStatus_GetDataDir{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnGetDataDirMatch(matchers ...interface{}) *ExecutableWorkflowStatus_GetDataDir { - c := _m.On("GetDataDir", matchers...) - return &ExecutableWorkflowStatus_GetDataDir{Call: c} + c_call := _m.On("GetDataDir", matchers...) + return &ExecutableWorkflowStatus_GetDataDir{Call: c_call} } // GetDataDir provides a mock function with given fields: @@ -100,13 +100,13 @@ func (_m ExecutableWorkflowStatus_GetExecutionError) Return(_a0 *core.ExecutionE } func (_m *ExecutableWorkflowStatus) OnGetExecutionError() *ExecutableWorkflowStatus_GetExecutionError { - c := _m.On("GetExecutionError") - return &ExecutableWorkflowStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError") + return &ExecutableWorkflowStatus_GetExecutionError{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnGetExecutionErrorMatch(matchers ...interface{}) *ExecutableWorkflowStatus_GetExecutionError { - c := _m.On("GetExecutionError", matchers...) - return &ExecutableWorkflowStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError", matchers...) + return &ExecutableWorkflowStatus_GetExecutionError{Call: c_call} } // GetExecutionError provides a mock function with given fields: @@ -134,13 +134,13 @@ func (_m ExecutableWorkflowStatus_GetLastUpdatedAt) Return(_a0 *v1.Time) *Execut } func (_m *ExecutableWorkflowStatus) OnGetLastUpdatedAt() *ExecutableWorkflowStatus_GetLastUpdatedAt { - c := _m.On("GetLastUpdatedAt") - return &ExecutableWorkflowStatus_GetLastUpdatedAt{Call: c} + c_call := _m.On("GetLastUpdatedAt") + return &ExecutableWorkflowStatus_GetLastUpdatedAt{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnGetLastUpdatedAtMatch(matchers ...interface{}) *ExecutableWorkflowStatus_GetLastUpdatedAt { - c := _m.On("GetLastUpdatedAt", matchers...) - return &ExecutableWorkflowStatus_GetLastUpdatedAt{Call: c} + c_call := _m.On("GetLastUpdatedAt", matchers...) + return &ExecutableWorkflowStatus_GetLastUpdatedAt{Call: c_call} } // GetLastUpdatedAt provides a mock function with given fields: @@ -168,13 +168,13 @@ func (_m ExecutableWorkflowStatus_GetMessage) Return(_a0 string) *ExecutableWork } func (_m *ExecutableWorkflowStatus) OnGetMessage() *ExecutableWorkflowStatus_GetMessage { - c := _m.On("GetMessage") - return &ExecutableWorkflowStatus_GetMessage{Call: c} + c_call := _m.On("GetMessage") + return &ExecutableWorkflowStatus_GetMessage{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnGetMessageMatch(matchers ...interface{}) *ExecutableWorkflowStatus_GetMessage { - c := _m.On("GetMessage", matchers...) - return &ExecutableWorkflowStatus_GetMessage{Call: c} + c_call := _m.On("GetMessage", matchers...) + return &ExecutableWorkflowStatus_GetMessage{Call: c_call} } // GetMessage provides a mock function with given fields: @@ -200,13 +200,13 @@ func (_m ExecutableWorkflowStatus_GetNodeExecutionStatus) Return(_a0 v1alpha1.Ex } func (_m *ExecutableWorkflowStatus) OnGetNodeExecutionStatus(ctx context.Context, id string) *ExecutableWorkflowStatus_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", ctx, id) - return &ExecutableWorkflowStatus_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", ctx, id) + return &ExecutableWorkflowStatus_GetNodeExecutionStatus{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnGetNodeExecutionStatusMatch(matchers ...interface{}) *ExecutableWorkflowStatus_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", matchers...) - return &ExecutableWorkflowStatus_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", matchers...) + return &ExecutableWorkflowStatus_GetNodeExecutionStatus{Call: c_call} } // GetNodeExecutionStatus provides a mock function with given fields: ctx, id @@ -234,13 +234,13 @@ func (_m ExecutableWorkflowStatus_GetOutputReference) Return(_a0 storage.DataRef } func (_m *ExecutableWorkflowStatus) OnGetOutputReference() *ExecutableWorkflowStatus_GetOutputReference { - c := _m.On("GetOutputReference") - return &ExecutableWorkflowStatus_GetOutputReference{Call: c} + c_call := _m.On("GetOutputReference") + return &ExecutableWorkflowStatus_GetOutputReference{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnGetOutputReferenceMatch(matchers ...interface{}) *ExecutableWorkflowStatus_GetOutputReference { - c := _m.On("GetOutputReference", matchers...) - return &ExecutableWorkflowStatus_GetOutputReference{Call: c} + c_call := _m.On("GetOutputReference", matchers...) + return &ExecutableWorkflowStatus_GetOutputReference{Call: c_call} } // GetOutputReference provides a mock function with given fields: @@ -266,13 +266,13 @@ func (_m ExecutableWorkflowStatus_GetPhase) Return(_a0 v1alpha1.WorkflowPhase) * } func (_m *ExecutableWorkflowStatus) OnGetPhase() *ExecutableWorkflowStatus_GetPhase { - c := _m.On("GetPhase") - return &ExecutableWorkflowStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase") + return &ExecutableWorkflowStatus_GetPhase{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnGetPhaseMatch(matchers ...interface{}) *ExecutableWorkflowStatus_GetPhase { - c := _m.On("GetPhase", matchers...) - return &ExecutableWorkflowStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase", matchers...) + return &ExecutableWorkflowStatus_GetPhase{Call: c_call} } // GetPhase provides a mock function with given fields: @@ -298,13 +298,13 @@ func (_m ExecutableWorkflowStatus_GetStartedAt) Return(_a0 *v1.Time) *Executable } func (_m *ExecutableWorkflowStatus) OnGetStartedAt() *ExecutableWorkflowStatus_GetStartedAt { - c := _m.On("GetStartedAt") - return &ExecutableWorkflowStatus_GetStartedAt{Call: c} + c_call := _m.On("GetStartedAt") + return &ExecutableWorkflowStatus_GetStartedAt{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnGetStartedAtMatch(matchers ...interface{}) *ExecutableWorkflowStatus_GetStartedAt { - c := _m.On("GetStartedAt", matchers...) - return &ExecutableWorkflowStatus_GetStartedAt{Call: c} + c_call := _m.On("GetStartedAt", matchers...) + return &ExecutableWorkflowStatus_GetStartedAt{Call: c_call} } // GetStartedAt provides a mock function with given fields: @@ -332,13 +332,13 @@ func (_m ExecutableWorkflowStatus_GetStoppedAt) Return(_a0 *v1.Time) *Executable } func (_m *ExecutableWorkflowStatus) OnGetStoppedAt() *ExecutableWorkflowStatus_GetStoppedAt { - c := _m.On("GetStoppedAt") - return &ExecutableWorkflowStatus_GetStoppedAt{Call: c} + c_call := _m.On("GetStoppedAt") + return &ExecutableWorkflowStatus_GetStoppedAt{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnGetStoppedAtMatch(matchers ...interface{}) *ExecutableWorkflowStatus_GetStoppedAt { - c := _m.On("GetStoppedAt", matchers...) - return &ExecutableWorkflowStatus_GetStoppedAt{Call: c} + c_call := _m.On("GetStoppedAt", matchers...) + return &ExecutableWorkflowStatus_GetStoppedAt{Call: c_call} } // GetStoppedAt provides a mock function with given fields: @@ -371,13 +371,13 @@ func (_m ExecutableWorkflowStatus_IsTerminated) Return(_a0 bool) *ExecutableWork } func (_m *ExecutableWorkflowStatus) OnIsTerminated() *ExecutableWorkflowStatus_IsTerminated { - c := _m.On("IsTerminated") - return &ExecutableWorkflowStatus_IsTerminated{Call: c} + c_call := _m.On("IsTerminated") + return &ExecutableWorkflowStatus_IsTerminated{Call: c_call} } func (_m *ExecutableWorkflowStatus) OnIsTerminatedMatch(matchers ...interface{}) *ExecutableWorkflowStatus_IsTerminated { - c := _m.On("IsTerminated", matchers...) - return &ExecutableWorkflowStatus_IsTerminated{Call: c} + c_call := _m.On("IsTerminated", matchers...) + return &ExecutableWorkflowStatus_IsTerminated{Call: c_call} } // IsTerminated provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutionTimeInfo.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutionTimeInfo.go index 4199378cbb..c47a5d3b92 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutionTimeInfo.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/ExecutionTimeInfo.go @@ -21,13 +21,13 @@ func (_m ExecutionTimeInfo_GetLastUpdatedAt) Return(_a0 *v1.Time) *ExecutionTime } func (_m *ExecutionTimeInfo) OnGetLastUpdatedAt() *ExecutionTimeInfo_GetLastUpdatedAt { - c := _m.On("GetLastUpdatedAt") - return &ExecutionTimeInfo_GetLastUpdatedAt{Call: c} + c_call := _m.On("GetLastUpdatedAt") + return &ExecutionTimeInfo_GetLastUpdatedAt{Call: c_call} } func (_m *ExecutionTimeInfo) OnGetLastUpdatedAtMatch(matchers ...interface{}) *ExecutionTimeInfo_GetLastUpdatedAt { - c := _m.On("GetLastUpdatedAt", matchers...) - return &ExecutionTimeInfo_GetLastUpdatedAt{Call: c} + c_call := _m.On("GetLastUpdatedAt", matchers...) + return &ExecutionTimeInfo_GetLastUpdatedAt{Call: c_call} } // GetLastUpdatedAt provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m ExecutionTimeInfo_GetStartedAt) Return(_a0 *v1.Time) *ExecutionTimeInfo } func (_m *ExecutionTimeInfo) OnGetStartedAt() *ExecutionTimeInfo_GetStartedAt { - c := _m.On("GetStartedAt") - return &ExecutionTimeInfo_GetStartedAt{Call: c} + c_call := _m.On("GetStartedAt") + return &ExecutionTimeInfo_GetStartedAt{Call: c_call} } func (_m *ExecutionTimeInfo) OnGetStartedAtMatch(matchers ...interface{}) *ExecutionTimeInfo_GetStartedAt { - c := _m.On("GetStartedAt", matchers...) - return &ExecutionTimeInfo_GetStartedAt{Call: c} + c_call := _m.On("GetStartedAt", matchers...) + return &ExecutionTimeInfo_GetStartedAt{Call: c_call} } // GetStartedAt provides a mock function with given fields: @@ -89,13 +89,13 @@ func (_m ExecutionTimeInfo_GetStoppedAt) Return(_a0 *v1.Time) *ExecutionTimeInfo } func (_m *ExecutionTimeInfo) OnGetStoppedAt() *ExecutionTimeInfo_GetStoppedAt { - c := _m.On("GetStoppedAt") - return &ExecutionTimeInfo_GetStoppedAt{Call: c} + c_call := _m.On("GetStoppedAt") + return &ExecutionTimeInfo_GetStoppedAt{Call: c_call} } func (_m *ExecutionTimeInfo) OnGetStoppedAtMatch(matchers ...interface{}) *ExecutionTimeInfo_GetStoppedAt { - c := _m.On("GetStoppedAt", matchers...) - return &ExecutionTimeInfo_GetStoppedAt{Call: c} + c_call := _m.On("GetStoppedAt", matchers...) + return &ExecutionTimeInfo_GetStoppedAt{Call: c_call} } // GetStoppedAt provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/Meta.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/Meta.go index c2b2b72f74..4afbcae33e 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/Meta.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/Meta.go @@ -27,13 +27,13 @@ func (_m Meta_GetAnnotations) Return(_a0 map[string]string) *Meta_GetAnnotations } func (_m *Meta) OnGetAnnotations() *Meta_GetAnnotations { - c := _m.On("GetAnnotations") - return &Meta_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations") + return &Meta_GetAnnotations{Call: c_call} } func (_m *Meta) OnGetAnnotationsMatch(matchers ...interface{}) *Meta_GetAnnotations { - c := _m.On("GetAnnotations", matchers...) - return &Meta_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations", matchers...) + return &Meta_GetAnnotations{Call: c_call} } // GetAnnotations provides a mock function with given fields: @@ -61,13 +61,13 @@ func (_m Meta_GetCreationTimestamp) Return(_a0 v1.Time) *Meta_GetCreationTimesta } func (_m *Meta) OnGetCreationTimestamp() *Meta_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp") - return &Meta_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp") + return &Meta_GetCreationTimestamp{Call: c_call} } func (_m *Meta) OnGetCreationTimestampMatch(matchers ...interface{}) *Meta_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp", matchers...) - return &Meta_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp", matchers...) + return &Meta_GetCreationTimestamp{Call: c_call} } // GetCreationTimestamp provides a mock function with given fields: @@ -93,13 +93,13 @@ func (_m Meta_GetEventVersion) Return(_a0 v1alpha1.EventVersion) *Meta_GetEventV } func (_m *Meta) OnGetEventVersion() *Meta_GetEventVersion { - c := _m.On("GetEventVersion") - return &Meta_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion") + return &Meta_GetEventVersion{Call: c_call} } func (_m *Meta) OnGetEventVersionMatch(matchers ...interface{}) *Meta_GetEventVersion { - c := _m.On("GetEventVersion", matchers...) - return &Meta_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion", matchers...) + return &Meta_GetEventVersion{Call: c_call} } // GetEventVersion provides a mock function with given fields: @@ -125,13 +125,13 @@ func (_m Meta_GetExecutionID) Return(_a0 v1alpha1.WorkflowExecutionIdentifier) * } func (_m *Meta) OnGetExecutionID() *Meta_GetExecutionID { - c := _m.On("GetExecutionID") - return &Meta_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID") + return &Meta_GetExecutionID{Call: c_call} } func (_m *Meta) OnGetExecutionIDMatch(matchers ...interface{}) *Meta_GetExecutionID { - c := _m.On("GetExecutionID", matchers...) - return &Meta_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID", matchers...) + return &Meta_GetExecutionID{Call: c_call} } // GetExecutionID provides a mock function with given fields: @@ -157,13 +157,13 @@ func (_m Meta_GetK8sWorkflowID) Return(_a0 types.NamespacedName) *Meta_GetK8sWor } func (_m *Meta) OnGetK8sWorkflowID() *Meta_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID") - return &Meta_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID") + return &Meta_GetK8sWorkflowID{Call: c_call} } func (_m *Meta) OnGetK8sWorkflowIDMatch(matchers ...interface{}) *Meta_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID", matchers...) - return &Meta_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID", matchers...) + return &Meta_GetK8sWorkflowID{Call: c_call} } // GetK8sWorkflowID provides a mock function with given fields: @@ -189,13 +189,13 @@ func (_m Meta_GetLabels) Return(_a0 map[string]string) *Meta_GetLabels { } func (_m *Meta) OnGetLabels() *Meta_GetLabels { - c := _m.On("GetLabels") - return &Meta_GetLabels{Call: c} + c_call := _m.On("GetLabels") + return &Meta_GetLabels{Call: c_call} } func (_m *Meta) OnGetLabelsMatch(matchers ...interface{}) *Meta_GetLabels { - c := _m.On("GetLabels", matchers...) - return &Meta_GetLabels{Call: c} + c_call := _m.On("GetLabels", matchers...) + return &Meta_GetLabels{Call: c_call} } // GetLabels provides a mock function with given fields: @@ -223,13 +223,13 @@ func (_m Meta_GetName) Return(_a0 string) *Meta_GetName { } func (_m *Meta) OnGetName() *Meta_GetName { - c := _m.On("GetName") - return &Meta_GetName{Call: c} + c_call := _m.On("GetName") + return &Meta_GetName{Call: c_call} } func (_m *Meta) OnGetNameMatch(matchers ...interface{}) *Meta_GetName { - c := _m.On("GetName", matchers...) - return &Meta_GetName{Call: c} + c_call := _m.On("GetName", matchers...) + return &Meta_GetName{Call: c_call} } // GetName provides a mock function with given fields: @@ -255,13 +255,13 @@ func (_m Meta_GetNamespace) Return(_a0 string) *Meta_GetNamespace { } func (_m *Meta) OnGetNamespace() *Meta_GetNamespace { - c := _m.On("GetNamespace") - return &Meta_GetNamespace{Call: c} + c_call := _m.On("GetNamespace") + return &Meta_GetNamespace{Call: c_call} } func (_m *Meta) OnGetNamespaceMatch(matchers ...interface{}) *Meta_GetNamespace { - c := _m.On("GetNamespace", matchers...) - return &Meta_GetNamespace{Call: c} + c_call := _m.On("GetNamespace", matchers...) + return &Meta_GetNamespace{Call: c_call} } // GetNamespace provides a mock function with given fields: @@ -287,13 +287,13 @@ func (_m Meta_GetOwnerReference) Return(_a0 v1.OwnerReference) *Meta_GetOwnerRef } func (_m *Meta) OnGetOwnerReference() *Meta_GetOwnerReference { - c := _m.On("GetOwnerReference") - return &Meta_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference") + return &Meta_GetOwnerReference{Call: c_call} } func (_m *Meta) OnGetOwnerReferenceMatch(matchers ...interface{}) *Meta_GetOwnerReference { - c := _m.On("GetOwnerReference", matchers...) - return &Meta_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference", matchers...) + return &Meta_GetOwnerReference{Call: c_call} } // GetOwnerReference provides a mock function with given fields: @@ -319,13 +319,13 @@ func (_m Meta_GetRawOutputDataConfig) Return(_a0 v1alpha1.RawOutputDataConfig) * } func (_m *Meta) OnGetRawOutputDataConfig() *Meta_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig") - return &Meta_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig") + return &Meta_GetRawOutputDataConfig{Call: c_call} } func (_m *Meta) OnGetRawOutputDataConfigMatch(matchers ...interface{}) *Meta_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig", matchers...) - return &Meta_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig", matchers...) + return &Meta_GetRawOutputDataConfig{Call: c_call} } // GetRawOutputDataConfig provides a mock function with given fields: @@ -351,13 +351,13 @@ func (_m Meta_GetSecurityContext) Return(_a0 core.SecurityContext) *Meta_GetSecu } func (_m *Meta) OnGetSecurityContext() *Meta_GetSecurityContext { - c := _m.On("GetSecurityContext") - return &Meta_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext") + return &Meta_GetSecurityContext{Call: c_call} } func (_m *Meta) OnGetSecurityContextMatch(matchers ...interface{}) *Meta_GetSecurityContext { - c := _m.On("GetSecurityContext", matchers...) - return &Meta_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext", matchers...) + return &Meta_GetSecurityContext{Call: c_call} } // GetSecurityContext provides a mock function with given fields: @@ -383,13 +383,13 @@ func (_m Meta_GetServiceAccountName) Return(_a0 string) *Meta_GetServiceAccountN } func (_m *Meta) OnGetServiceAccountName() *Meta_GetServiceAccountName { - c := _m.On("GetServiceAccountName") - return &Meta_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName") + return &Meta_GetServiceAccountName{Call: c_call} } func (_m *Meta) OnGetServiceAccountNameMatch(matchers ...interface{}) *Meta_GetServiceAccountName { - c := _m.On("GetServiceAccountName", matchers...) - return &Meta_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName", matchers...) + return &Meta_GetServiceAccountName{Call: c_call} } // GetServiceAccountName provides a mock function with given fields: @@ -415,13 +415,13 @@ func (_m Meta_IsInterruptible) Return(_a0 bool) *Meta_IsInterruptible { } func (_m *Meta) OnIsInterruptible() *Meta_IsInterruptible { - c := _m.On("IsInterruptible") - return &Meta_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible") + return &Meta_IsInterruptible{Call: c_call} } func (_m *Meta) OnIsInterruptibleMatch(matchers ...interface{}) *Meta_IsInterruptible { - c := _m.On("IsInterruptible", matchers...) - return &Meta_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible", matchers...) + return &Meta_IsInterruptible{Call: c_call} } // IsInterruptible provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/MetaExtended.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/MetaExtended.go index cca89c09f0..e3f395bc3a 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/MetaExtended.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/MetaExtended.go @@ -27,13 +27,13 @@ func (_m MetaExtended_FindSubWorkflow) Return(_a0 v1alpha1.ExecutableSubWorkflow } func (_m *MetaExtended) OnFindSubWorkflow(subID string) *MetaExtended_FindSubWorkflow { - c := _m.On("FindSubWorkflow", subID) - return &MetaExtended_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", subID) + return &MetaExtended_FindSubWorkflow{Call: c_call} } func (_m *MetaExtended) OnFindSubWorkflowMatch(matchers ...interface{}) *MetaExtended_FindSubWorkflow { - c := _m.On("FindSubWorkflow", matchers...) - return &MetaExtended_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", matchers...) + return &MetaExtended_FindSubWorkflow{Call: c_call} } // FindSubWorkflow provides a mock function with given fields: subID @@ -61,13 +61,13 @@ func (_m MetaExtended_GetAnnotations) Return(_a0 map[string]string) *MetaExtende } func (_m *MetaExtended) OnGetAnnotations() *MetaExtended_GetAnnotations { - c := _m.On("GetAnnotations") - return &MetaExtended_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations") + return &MetaExtended_GetAnnotations{Call: c_call} } func (_m *MetaExtended) OnGetAnnotationsMatch(matchers ...interface{}) *MetaExtended_GetAnnotations { - c := _m.On("GetAnnotations", matchers...) - return &MetaExtended_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations", matchers...) + return &MetaExtended_GetAnnotations{Call: c_call} } // GetAnnotations provides a mock function with given fields: @@ -95,13 +95,13 @@ func (_m MetaExtended_GetCreationTimestamp) Return(_a0 v1.Time) *MetaExtended_Ge } func (_m *MetaExtended) OnGetCreationTimestamp() *MetaExtended_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp") - return &MetaExtended_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp") + return &MetaExtended_GetCreationTimestamp{Call: c_call} } func (_m *MetaExtended) OnGetCreationTimestampMatch(matchers ...interface{}) *MetaExtended_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp", matchers...) - return &MetaExtended_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp", matchers...) + return &MetaExtended_GetCreationTimestamp{Call: c_call} } // GetCreationTimestamp provides a mock function with given fields: @@ -127,13 +127,13 @@ func (_m MetaExtended_GetEventVersion) Return(_a0 v1alpha1.EventVersion) *MetaEx } func (_m *MetaExtended) OnGetEventVersion() *MetaExtended_GetEventVersion { - c := _m.On("GetEventVersion") - return &MetaExtended_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion") + return &MetaExtended_GetEventVersion{Call: c_call} } func (_m *MetaExtended) OnGetEventVersionMatch(matchers ...interface{}) *MetaExtended_GetEventVersion { - c := _m.On("GetEventVersion", matchers...) - return &MetaExtended_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion", matchers...) + return &MetaExtended_GetEventVersion{Call: c_call} } // GetEventVersion provides a mock function with given fields: @@ -159,13 +159,13 @@ func (_m MetaExtended_GetExecutionID) Return(_a0 v1alpha1.WorkflowExecutionIdent } func (_m *MetaExtended) OnGetExecutionID() *MetaExtended_GetExecutionID { - c := _m.On("GetExecutionID") - return &MetaExtended_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID") + return &MetaExtended_GetExecutionID{Call: c_call} } func (_m *MetaExtended) OnGetExecutionIDMatch(matchers ...interface{}) *MetaExtended_GetExecutionID { - c := _m.On("GetExecutionID", matchers...) - return &MetaExtended_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID", matchers...) + return &MetaExtended_GetExecutionID{Call: c_call} } // GetExecutionID provides a mock function with given fields: @@ -191,13 +191,13 @@ func (_m MetaExtended_GetExecutionStatus) Return(_a0 v1alpha1.ExecutableWorkflow } func (_m *MetaExtended) OnGetExecutionStatus() *MetaExtended_GetExecutionStatus { - c := _m.On("GetExecutionStatus") - return &MetaExtended_GetExecutionStatus{Call: c} + c_call := _m.On("GetExecutionStatus") + return &MetaExtended_GetExecutionStatus{Call: c_call} } func (_m *MetaExtended) OnGetExecutionStatusMatch(matchers ...interface{}) *MetaExtended_GetExecutionStatus { - c := _m.On("GetExecutionStatus", matchers...) - return &MetaExtended_GetExecutionStatus{Call: c} + c_call := _m.On("GetExecutionStatus", matchers...) + return &MetaExtended_GetExecutionStatus{Call: c_call} } // GetExecutionStatus provides a mock function with given fields: @@ -225,13 +225,13 @@ func (_m MetaExtended_GetK8sWorkflowID) Return(_a0 types.NamespacedName) *MetaEx } func (_m *MetaExtended) OnGetK8sWorkflowID() *MetaExtended_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID") - return &MetaExtended_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID") + return &MetaExtended_GetK8sWorkflowID{Call: c_call} } func (_m *MetaExtended) OnGetK8sWorkflowIDMatch(matchers ...interface{}) *MetaExtended_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID", matchers...) - return &MetaExtended_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID", matchers...) + return &MetaExtended_GetK8sWorkflowID{Call: c_call} } // GetK8sWorkflowID provides a mock function with given fields: @@ -257,13 +257,13 @@ func (_m MetaExtended_GetLabels) Return(_a0 map[string]string) *MetaExtended_Get } func (_m *MetaExtended) OnGetLabels() *MetaExtended_GetLabels { - c := _m.On("GetLabels") - return &MetaExtended_GetLabels{Call: c} + c_call := _m.On("GetLabels") + return &MetaExtended_GetLabels{Call: c_call} } func (_m *MetaExtended) OnGetLabelsMatch(matchers ...interface{}) *MetaExtended_GetLabels { - c := _m.On("GetLabels", matchers...) - return &MetaExtended_GetLabels{Call: c} + c_call := _m.On("GetLabels", matchers...) + return &MetaExtended_GetLabels{Call: c_call} } // GetLabels provides a mock function with given fields: @@ -291,13 +291,13 @@ func (_m MetaExtended_GetName) Return(_a0 string) *MetaExtended_GetName { } func (_m *MetaExtended) OnGetName() *MetaExtended_GetName { - c := _m.On("GetName") - return &MetaExtended_GetName{Call: c} + c_call := _m.On("GetName") + return &MetaExtended_GetName{Call: c_call} } func (_m *MetaExtended) OnGetNameMatch(matchers ...interface{}) *MetaExtended_GetName { - c := _m.On("GetName", matchers...) - return &MetaExtended_GetName{Call: c} + c_call := _m.On("GetName", matchers...) + return &MetaExtended_GetName{Call: c_call} } // GetName provides a mock function with given fields: @@ -323,13 +323,13 @@ func (_m MetaExtended_GetNamespace) Return(_a0 string) *MetaExtended_GetNamespac } func (_m *MetaExtended) OnGetNamespace() *MetaExtended_GetNamespace { - c := _m.On("GetNamespace") - return &MetaExtended_GetNamespace{Call: c} + c_call := _m.On("GetNamespace") + return &MetaExtended_GetNamespace{Call: c_call} } func (_m *MetaExtended) OnGetNamespaceMatch(matchers ...interface{}) *MetaExtended_GetNamespace { - c := _m.On("GetNamespace", matchers...) - return &MetaExtended_GetNamespace{Call: c} + c_call := _m.On("GetNamespace", matchers...) + return &MetaExtended_GetNamespace{Call: c_call} } // GetNamespace provides a mock function with given fields: @@ -355,13 +355,13 @@ func (_m MetaExtended_GetOwnerReference) Return(_a0 v1.OwnerReference) *MetaExte } func (_m *MetaExtended) OnGetOwnerReference() *MetaExtended_GetOwnerReference { - c := _m.On("GetOwnerReference") - return &MetaExtended_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference") + return &MetaExtended_GetOwnerReference{Call: c_call} } func (_m *MetaExtended) OnGetOwnerReferenceMatch(matchers ...interface{}) *MetaExtended_GetOwnerReference { - c := _m.On("GetOwnerReference", matchers...) - return &MetaExtended_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference", matchers...) + return &MetaExtended_GetOwnerReference{Call: c_call} } // GetOwnerReference provides a mock function with given fields: @@ -387,13 +387,13 @@ func (_m MetaExtended_GetRawOutputDataConfig) Return(_a0 v1alpha1.RawOutputDataC } func (_m *MetaExtended) OnGetRawOutputDataConfig() *MetaExtended_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig") - return &MetaExtended_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig") + return &MetaExtended_GetRawOutputDataConfig{Call: c_call} } func (_m *MetaExtended) OnGetRawOutputDataConfigMatch(matchers ...interface{}) *MetaExtended_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig", matchers...) - return &MetaExtended_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig", matchers...) + return &MetaExtended_GetRawOutputDataConfig{Call: c_call} } // GetRawOutputDataConfig provides a mock function with given fields: @@ -419,13 +419,13 @@ func (_m MetaExtended_GetSecurityContext) Return(_a0 core.SecurityContext) *Meta } func (_m *MetaExtended) OnGetSecurityContext() *MetaExtended_GetSecurityContext { - c := _m.On("GetSecurityContext") - return &MetaExtended_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext") + return &MetaExtended_GetSecurityContext{Call: c_call} } func (_m *MetaExtended) OnGetSecurityContextMatch(matchers ...interface{}) *MetaExtended_GetSecurityContext { - c := _m.On("GetSecurityContext", matchers...) - return &MetaExtended_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext", matchers...) + return &MetaExtended_GetSecurityContext{Call: c_call} } // GetSecurityContext provides a mock function with given fields: @@ -451,13 +451,13 @@ func (_m MetaExtended_GetServiceAccountName) Return(_a0 string) *MetaExtended_Ge } func (_m *MetaExtended) OnGetServiceAccountName() *MetaExtended_GetServiceAccountName { - c := _m.On("GetServiceAccountName") - return &MetaExtended_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName") + return &MetaExtended_GetServiceAccountName{Call: c_call} } func (_m *MetaExtended) OnGetServiceAccountNameMatch(matchers ...interface{}) *MetaExtended_GetServiceAccountName { - c := _m.On("GetServiceAccountName", matchers...) - return &MetaExtended_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName", matchers...) + return &MetaExtended_GetServiceAccountName{Call: c_call} } // GetServiceAccountName provides a mock function with given fields: @@ -483,13 +483,13 @@ func (_m MetaExtended_GetTask) Return(_a0 v1alpha1.ExecutableTask, _a1 error) *M } func (_m *MetaExtended) OnGetTask(id string) *MetaExtended_GetTask { - c := _m.On("GetTask", id) - return &MetaExtended_GetTask{Call: c} + c_call := _m.On("GetTask", id) + return &MetaExtended_GetTask{Call: c_call} } func (_m *MetaExtended) OnGetTaskMatch(matchers ...interface{}) *MetaExtended_GetTask { - c := _m.On("GetTask", matchers...) - return &MetaExtended_GetTask{Call: c} + c_call := _m.On("GetTask", matchers...) + return &MetaExtended_GetTask{Call: c_call} } // GetTask provides a mock function with given fields: id @@ -524,13 +524,13 @@ func (_m MetaExtended_IsInterruptible) Return(_a0 bool) *MetaExtended_IsInterrup } func (_m *MetaExtended) OnIsInterruptible() *MetaExtended_IsInterruptible { - c := _m.On("IsInterruptible") - return &MetaExtended_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible") + return &MetaExtended_IsInterruptible{Call: c_call} } func (_m *MetaExtended) OnIsInterruptibleMatch(matchers ...interface{}) *MetaExtended_IsInterruptible { - c := _m.On("IsInterruptible", matchers...) - return &MetaExtended_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible", matchers...) + return &MetaExtended_IsInterruptible{Call: c_call} } // IsInterruptible provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/Mutable.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/Mutable.go index 9a2666806f..b64b9aa61a 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/Mutable.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/Mutable.go @@ -18,13 +18,13 @@ func (_m Mutable_IsDirty) Return(_a0 bool) *Mutable_IsDirty { } func (_m *Mutable) OnIsDirty() *Mutable_IsDirty { - c := _m.On("IsDirty") - return &Mutable_IsDirty{Call: c} + c_call := _m.On("IsDirty") + return &Mutable_IsDirty{Call: c_call} } func (_m *Mutable) OnIsDirtyMatch(matchers ...interface{}) *Mutable_IsDirty { - c := _m.On("IsDirty", matchers...) - return &Mutable_IsDirty{Call: c} + c_call := _m.On("IsDirty", matchers...) + return &Mutable_IsDirty{Call: c_call} } // IsDirty provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableBranchNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableBranchNodeStatus.go index eb6aa646be..724e5a787d 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableBranchNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableBranchNodeStatus.go @@ -21,13 +21,13 @@ func (_m MutableBranchNodeStatus_GetFinalizedNode) Return(_a0 *string) *MutableB } func (_m *MutableBranchNodeStatus) OnGetFinalizedNode() *MutableBranchNodeStatus_GetFinalizedNode { - c := _m.On("GetFinalizedNode") - return &MutableBranchNodeStatus_GetFinalizedNode{Call: c} + c_call := _m.On("GetFinalizedNode") + return &MutableBranchNodeStatus_GetFinalizedNode{Call: c_call} } func (_m *MutableBranchNodeStatus) OnGetFinalizedNodeMatch(matchers ...interface{}) *MutableBranchNodeStatus_GetFinalizedNode { - c := _m.On("GetFinalizedNode", matchers...) - return &MutableBranchNodeStatus_GetFinalizedNode{Call: c} + c_call := _m.On("GetFinalizedNode", matchers...) + return &MutableBranchNodeStatus_GetFinalizedNode{Call: c_call} } // GetFinalizedNode provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m MutableBranchNodeStatus_GetPhase) Return(_a0 v1alpha1.BranchNodePhase) } func (_m *MutableBranchNodeStatus) OnGetPhase() *MutableBranchNodeStatus_GetPhase { - c := _m.On("GetPhase") - return &MutableBranchNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase") + return &MutableBranchNodeStatus_GetPhase{Call: c_call} } func (_m *MutableBranchNodeStatus) OnGetPhaseMatch(matchers ...interface{}) *MutableBranchNodeStatus_GetPhase { - c := _m.On("GetPhase", matchers...) - return &MutableBranchNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase", matchers...) + return &MutableBranchNodeStatus_GetPhase{Call: c_call} } // GetPhase provides a mock function with given fields: @@ -87,13 +87,13 @@ func (_m MutableBranchNodeStatus_IsDirty) Return(_a0 bool) *MutableBranchNodeSta } func (_m *MutableBranchNodeStatus) OnIsDirty() *MutableBranchNodeStatus_IsDirty { - c := _m.On("IsDirty") - return &MutableBranchNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty") + return &MutableBranchNodeStatus_IsDirty{Call: c_call} } func (_m *MutableBranchNodeStatus) OnIsDirtyMatch(matchers ...interface{}) *MutableBranchNodeStatus_IsDirty { - c := _m.On("IsDirty", matchers...) - return &MutableBranchNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty", matchers...) + return &MutableBranchNodeStatus_IsDirty{Call: c_call} } // IsDirty provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableDynamicNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableDynamicNodeStatus.go index 120f3c98a6..4299feb2db 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableDynamicNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableDynamicNodeStatus.go @@ -23,13 +23,13 @@ func (_m MutableDynamicNodeStatus_GetDynamicNodePhase) Return(_a0 v1alpha1.Dynam } func (_m *MutableDynamicNodeStatus) OnGetDynamicNodePhase() *MutableDynamicNodeStatus_GetDynamicNodePhase { - c := _m.On("GetDynamicNodePhase") - return &MutableDynamicNodeStatus_GetDynamicNodePhase{Call: c} + c_call := _m.On("GetDynamicNodePhase") + return &MutableDynamicNodeStatus_GetDynamicNodePhase{Call: c_call} } func (_m *MutableDynamicNodeStatus) OnGetDynamicNodePhaseMatch(matchers ...interface{}) *MutableDynamicNodeStatus_GetDynamicNodePhase { - c := _m.On("GetDynamicNodePhase", matchers...) - return &MutableDynamicNodeStatus_GetDynamicNodePhase{Call: c} + c_call := _m.On("GetDynamicNodePhase", matchers...) + return &MutableDynamicNodeStatus_GetDynamicNodePhase{Call: c_call} } // GetDynamicNodePhase provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m MutableDynamicNodeStatus_GetDynamicNodeReason) Return(_a0 string) *Muta } func (_m *MutableDynamicNodeStatus) OnGetDynamicNodeReason() *MutableDynamicNodeStatus_GetDynamicNodeReason { - c := _m.On("GetDynamicNodeReason") - return &MutableDynamicNodeStatus_GetDynamicNodeReason{Call: c} + c_call := _m.On("GetDynamicNodeReason") + return &MutableDynamicNodeStatus_GetDynamicNodeReason{Call: c_call} } func (_m *MutableDynamicNodeStatus) OnGetDynamicNodeReasonMatch(matchers ...interface{}) *MutableDynamicNodeStatus_GetDynamicNodeReason { - c := _m.On("GetDynamicNodeReason", matchers...) - return &MutableDynamicNodeStatus_GetDynamicNodeReason{Call: c} + c_call := _m.On("GetDynamicNodeReason", matchers...) + return &MutableDynamicNodeStatus_GetDynamicNodeReason{Call: c_call} } // GetDynamicNodeReason provides a mock function with given fields: @@ -87,13 +87,13 @@ func (_m MutableDynamicNodeStatus_GetExecutionError) Return(_a0 *core.ExecutionE } func (_m *MutableDynamicNodeStatus) OnGetExecutionError() *MutableDynamicNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError") - return &MutableDynamicNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError") + return &MutableDynamicNodeStatus_GetExecutionError{Call: c_call} } func (_m *MutableDynamicNodeStatus) OnGetExecutionErrorMatch(matchers ...interface{}) *MutableDynamicNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError", matchers...) - return &MutableDynamicNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError", matchers...) + return &MutableDynamicNodeStatus_GetExecutionError{Call: c_call} } // GetExecutionError provides a mock function with given fields: @@ -121,13 +121,13 @@ func (_m MutableDynamicNodeStatus_IsDirty) Return(_a0 bool) *MutableDynamicNodeS } func (_m *MutableDynamicNodeStatus) OnIsDirty() *MutableDynamicNodeStatus_IsDirty { - c := _m.On("IsDirty") - return &MutableDynamicNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty") + return &MutableDynamicNodeStatus_IsDirty{Call: c_call} } func (_m *MutableDynamicNodeStatus) OnIsDirtyMatch(matchers ...interface{}) *MutableDynamicNodeStatus_IsDirty { - c := _m.On("IsDirty", matchers...) - return &MutableDynamicNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty", matchers...) + return &MutableDynamicNodeStatus_IsDirty{Call: c_call} } // IsDirty provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableNodeStatus.go index 267aaf489a..95001591c5 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableNodeStatus.go @@ -52,13 +52,13 @@ func (_m MutableNodeStatus_GetBranchStatus) Return(_a0 v1alpha1.MutableBranchNod } func (_m *MutableNodeStatus) OnGetBranchStatus() *MutableNodeStatus_GetBranchStatus { - c := _m.On("GetBranchStatus") - return &MutableNodeStatus_GetBranchStatus{Call: c} + c_call := _m.On("GetBranchStatus") + return &MutableNodeStatus_GetBranchStatus{Call: c_call} } func (_m *MutableNodeStatus) OnGetBranchStatusMatch(matchers ...interface{}) *MutableNodeStatus_GetBranchStatus { - c := _m.On("GetBranchStatus", matchers...) - return &MutableNodeStatus_GetBranchStatus{Call: c} + c_call := _m.On("GetBranchStatus", matchers...) + return &MutableNodeStatus_GetBranchStatus{Call: c_call} } // GetBranchStatus provides a mock function with given fields: @@ -86,13 +86,13 @@ func (_m MutableNodeStatus_GetDynamicNodeStatus) Return(_a0 v1alpha1.MutableDyna } func (_m *MutableNodeStatus) OnGetDynamicNodeStatus() *MutableNodeStatus_GetDynamicNodeStatus { - c := _m.On("GetDynamicNodeStatus") - return &MutableNodeStatus_GetDynamicNodeStatus{Call: c} + c_call := _m.On("GetDynamicNodeStatus") + return &MutableNodeStatus_GetDynamicNodeStatus{Call: c_call} } func (_m *MutableNodeStatus) OnGetDynamicNodeStatusMatch(matchers ...interface{}) *MutableNodeStatus_GetDynamicNodeStatus { - c := _m.On("GetDynamicNodeStatus", matchers...) - return &MutableNodeStatus_GetDynamicNodeStatus{Call: c} + c_call := _m.On("GetDynamicNodeStatus", matchers...) + return &MutableNodeStatus_GetDynamicNodeStatus{Call: c_call} } // GetDynamicNodeStatus provides a mock function with given fields: @@ -120,13 +120,13 @@ func (_m MutableNodeStatus_GetOrCreateBranchStatus) Return(_a0 v1alpha1.MutableB } func (_m *MutableNodeStatus) OnGetOrCreateBranchStatus() *MutableNodeStatus_GetOrCreateBranchStatus { - c := _m.On("GetOrCreateBranchStatus") - return &MutableNodeStatus_GetOrCreateBranchStatus{Call: c} + c_call := _m.On("GetOrCreateBranchStatus") + return &MutableNodeStatus_GetOrCreateBranchStatus{Call: c_call} } func (_m *MutableNodeStatus) OnGetOrCreateBranchStatusMatch(matchers ...interface{}) *MutableNodeStatus_GetOrCreateBranchStatus { - c := _m.On("GetOrCreateBranchStatus", matchers...) - return &MutableNodeStatus_GetOrCreateBranchStatus{Call: c} + c_call := _m.On("GetOrCreateBranchStatus", matchers...) + return &MutableNodeStatus_GetOrCreateBranchStatus{Call: c_call} } // GetOrCreateBranchStatus provides a mock function with given fields: @@ -154,13 +154,13 @@ func (_m MutableNodeStatus_GetOrCreateDynamicNodeStatus) Return(_a0 v1alpha1.Mut } func (_m *MutableNodeStatus) OnGetOrCreateDynamicNodeStatus() *MutableNodeStatus_GetOrCreateDynamicNodeStatus { - c := _m.On("GetOrCreateDynamicNodeStatus") - return &MutableNodeStatus_GetOrCreateDynamicNodeStatus{Call: c} + c_call := _m.On("GetOrCreateDynamicNodeStatus") + return &MutableNodeStatus_GetOrCreateDynamicNodeStatus{Call: c_call} } func (_m *MutableNodeStatus) OnGetOrCreateDynamicNodeStatusMatch(matchers ...interface{}) *MutableNodeStatus_GetOrCreateDynamicNodeStatus { - c := _m.On("GetOrCreateDynamicNodeStatus", matchers...) - return &MutableNodeStatus_GetOrCreateDynamicNodeStatus{Call: c} + c_call := _m.On("GetOrCreateDynamicNodeStatus", matchers...) + return &MutableNodeStatus_GetOrCreateDynamicNodeStatus{Call: c_call} } // GetOrCreateDynamicNodeStatus provides a mock function with given fields: @@ -188,13 +188,13 @@ func (_m MutableNodeStatus_GetOrCreateTaskStatus) Return(_a0 v1alpha1.MutableTas } func (_m *MutableNodeStatus) OnGetOrCreateTaskStatus() *MutableNodeStatus_GetOrCreateTaskStatus { - c := _m.On("GetOrCreateTaskStatus") - return &MutableNodeStatus_GetOrCreateTaskStatus{Call: c} + c_call := _m.On("GetOrCreateTaskStatus") + return &MutableNodeStatus_GetOrCreateTaskStatus{Call: c_call} } func (_m *MutableNodeStatus) OnGetOrCreateTaskStatusMatch(matchers ...interface{}) *MutableNodeStatus_GetOrCreateTaskStatus { - c := _m.On("GetOrCreateTaskStatus", matchers...) - return &MutableNodeStatus_GetOrCreateTaskStatus{Call: c} + c_call := _m.On("GetOrCreateTaskStatus", matchers...) + return &MutableNodeStatus_GetOrCreateTaskStatus{Call: c_call} } // GetOrCreateTaskStatus provides a mock function with given fields: @@ -222,13 +222,13 @@ func (_m MutableNodeStatus_GetOrCreateWorkflowStatus) Return(_a0 v1alpha1.Mutabl } func (_m *MutableNodeStatus) OnGetOrCreateWorkflowStatus() *MutableNodeStatus_GetOrCreateWorkflowStatus { - c := _m.On("GetOrCreateWorkflowStatus") - return &MutableNodeStatus_GetOrCreateWorkflowStatus{Call: c} + c_call := _m.On("GetOrCreateWorkflowStatus") + return &MutableNodeStatus_GetOrCreateWorkflowStatus{Call: c_call} } func (_m *MutableNodeStatus) OnGetOrCreateWorkflowStatusMatch(matchers ...interface{}) *MutableNodeStatus_GetOrCreateWorkflowStatus { - c := _m.On("GetOrCreateWorkflowStatus", matchers...) - return &MutableNodeStatus_GetOrCreateWorkflowStatus{Call: c} + c_call := _m.On("GetOrCreateWorkflowStatus", matchers...) + return &MutableNodeStatus_GetOrCreateWorkflowStatus{Call: c_call} } // GetOrCreateWorkflowStatus provides a mock function with given fields: @@ -256,13 +256,13 @@ func (_m MutableNodeStatus_GetTaskStatus) Return(_a0 v1alpha1.MutableTaskNodeSta } func (_m *MutableNodeStatus) OnGetTaskStatus() *MutableNodeStatus_GetTaskStatus { - c := _m.On("GetTaskStatus") - return &MutableNodeStatus_GetTaskStatus{Call: c} + c_call := _m.On("GetTaskStatus") + return &MutableNodeStatus_GetTaskStatus{Call: c_call} } func (_m *MutableNodeStatus) OnGetTaskStatusMatch(matchers ...interface{}) *MutableNodeStatus_GetTaskStatus { - c := _m.On("GetTaskStatus", matchers...) - return &MutableNodeStatus_GetTaskStatus{Call: c} + c_call := _m.On("GetTaskStatus", matchers...) + return &MutableNodeStatus_GetTaskStatus{Call: c_call} } // GetTaskStatus provides a mock function with given fields: @@ -290,13 +290,13 @@ func (_m MutableNodeStatus_GetWorkflowStatus) Return(_a0 v1alpha1.MutableWorkflo } func (_m *MutableNodeStatus) OnGetWorkflowStatus() *MutableNodeStatus_GetWorkflowStatus { - c := _m.On("GetWorkflowStatus") - return &MutableNodeStatus_GetWorkflowStatus{Call: c} + c_call := _m.On("GetWorkflowStatus") + return &MutableNodeStatus_GetWorkflowStatus{Call: c_call} } func (_m *MutableNodeStatus) OnGetWorkflowStatusMatch(matchers ...interface{}) *MutableNodeStatus_GetWorkflowStatus { - c := _m.On("GetWorkflowStatus", matchers...) - return &MutableNodeStatus_GetWorkflowStatus{Call: c} + c_call := _m.On("GetWorkflowStatus", matchers...) + return &MutableNodeStatus_GetWorkflowStatus{Call: c_call} } // GetWorkflowStatus provides a mock function with given fields: @@ -324,13 +324,13 @@ func (_m MutableNodeStatus_IncrementAttempts) Return(_a0 uint32) *MutableNodeSta } func (_m *MutableNodeStatus) OnIncrementAttempts() *MutableNodeStatus_IncrementAttempts { - c := _m.On("IncrementAttempts") - return &MutableNodeStatus_IncrementAttempts{Call: c} + c_call := _m.On("IncrementAttempts") + return &MutableNodeStatus_IncrementAttempts{Call: c_call} } func (_m *MutableNodeStatus) OnIncrementAttemptsMatch(matchers ...interface{}) *MutableNodeStatus_IncrementAttempts { - c := _m.On("IncrementAttempts", matchers...) - return &MutableNodeStatus_IncrementAttempts{Call: c} + c_call := _m.On("IncrementAttempts", matchers...) + return &MutableNodeStatus_IncrementAttempts{Call: c_call} } // IncrementAttempts provides a mock function with given fields: @@ -356,13 +356,13 @@ func (_m MutableNodeStatus_IncrementSystemFailures) Return(_a0 uint32) *MutableN } func (_m *MutableNodeStatus) OnIncrementSystemFailures() *MutableNodeStatus_IncrementSystemFailures { - c := _m.On("IncrementSystemFailures") - return &MutableNodeStatus_IncrementSystemFailures{Call: c} + c_call := _m.On("IncrementSystemFailures") + return &MutableNodeStatus_IncrementSystemFailures{Call: c_call} } func (_m *MutableNodeStatus) OnIncrementSystemFailuresMatch(matchers ...interface{}) *MutableNodeStatus_IncrementSystemFailures { - c := _m.On("IncrementSystemFailures", matchers...) - return &MutableNodeStatus_IncrementSystemFailures{Call: c} + c_call := _m.On("IncrementSystemFailures", matchers...) + return &MutableNodeStatus_IncrementSystemFailures{Call: c_call} } // IncrementSystemFailures provides a mock function with given fields: @@ -388,13 +388,13 @@ func (_m MutableNodeStatus_IsDirty) Return(_a0 bool) *MutableNodeStatus_IsDirty } func (_m *MutableNodeStatus) OnIsDirty() *MutableNodeStatus_IsDirty { - c := _m.On("IsDirty") - return &MutableNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty") + return &MutableNodeStatus_IsDirty{Call: c_call} } func (_m *MutableNodeStatus) OnIsDirtyMatch(matchers ...interface{}) *MutableNodeStatus_IsDirty { - c := _m.On("IsDirty", matchers...) - return &MutableNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty", matchers...) + return &MutableNodeStatus_IsDirty{Call: c_call} } // IsDirty provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableSubWorkflowNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableSubWorkflowNodeStatus.go index 42ad33f6f1..07e605b93e 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableSubWorkflowNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableSubWorkflowNodeStatus.go @@ -21,13 +21,13 @@ func (_m MutableSubWorkflowNodeStatus_GetPhase) Return(_a0 v1alpha1.WorkflowPhas } func (_m *MutableSubWorkflowNodeStatus) OnGetPhase() *MutableSubWorkflowNodeStatus_GetPhase { - c := _m.On("GetPhase") - return &MutableSubWorkflowNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase") + return &MutableSubWorkflowNodeStatus_GetPhase{Call: c_call} } func (_m *MutableSubWorkflowNodeStatus) OnGetPhaseMatch(matchers ...interface{}) *MutableSubWorkflowNodeStatus_GetPhase { - c := _m.On("GetPhase", matchers...) - return &MutableSubWorkflowNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase", matchers...) + return &MutableSubWorkflowNodeStatus_GetPhase{Call: c_call} } // GetPhase provides a mock function with given fields: @@ -53,13 +53,13 @@ func (_m MutableSubWorkflowNodeStatus_IsDirty) Return(_a0 bool) *MutableSubWorkf } func (_m *MutableSubWorkflowNodeStatus) OnIsDirty() *MutableSubWorkflowNodeStatus_IsDirty { - c := _m.On("IsDirty") - return &MutableSubWorkflowNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty") + return &MutableSubWorkflowNodeStatus_IsDirty{Call: c_call} } func (_m *MutableSubWorkflowNodeStatus) OnIsDirtyMatch(matchers ...interface{}) *MutableSubWorkflowNodeStatus_IsDirty { - c := _m.On("IsDirty", matchers...) - return &MutableSubWorkflowNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty", matchers...) + return &MutableSubWorkflowNodeStatus_IsDirty{Call: c_call} } // IsDirty provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableTaskNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableTaskNodeStatus.go index 1c5ac25a48..626817bed1 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableTaskNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableTaskNodeStatus.go @@ -22,13 +22,13 @@ func (_m MutableTaskNodeStatus_GetBarrierClockTick) Return(_a0 uint32) *MutableT } func (_m *MutableTaskNodeStatus) OnGetBarrierClockTick() *MutableTaskNodeStatus_GetBarrierClockTick { - c := _m.On("GetBarrierClockTick") - return &MutableTaskNodeStatus_GetBarrierClockTick{Call: c} + c_call := _m.On("GetBarrierClockTick") + return &MutableTaskNodeStatus_GetBarrierClockTick{Call: c_call} } func (_m *MutableTaskNodeStatus) OnGetBarrierClockTickMatch(matchers ...interface{}) *MutableTaskNodeStatus_GetBarrierClockTick { - c := _m.On("GetBarrierClockTick", matchers...) - return &MutableTaskNodeStatus_GetBarrierClockTick{Call: c} + c_call := _m.On("GetBarrierClockTick", matchers...) + return &MutableTaskNodeStatus_GetBarrierClockTick{Call: c_call} } // GetBarrierClockTick provides a mock function with given fields: @@ -54,13 +54,13 @@ func (_m MutableTaskNodeStatus_GetLastPhaseUpdatedAt) Return(_a0 time.Time) *Mut } func (_m *MutableTaskNodeStatus) OnGetLastPhaseUpdatedAt() *MutableTaskNodeStatus_GetLastPhaseUpdatedAt { - c := _m.On("GetLastPhaseUpdatedAt") - return &MutableTaskNodeStatus_GetLastPhaseUpdatedAt{Call: c} + c_call := _m.On("GetLastPhaseUpdatedAt") + return &MutableTaskNodeStatus_GetLastPhaseUpdatedAt{Call: c_call} } func (_m *MutableTaskNodeStatus) OnGetLastPhaseUpdatedAtMatch(matchers ...interface{}) *MutableTaskNodeStatus_GetLastPhaseUpdatedAt { - c := _m.On("GetLastPhaseUpdatedAt", matchers...) - return &MutableTaskNodeStatus_GetLastPhaseUpdatedAt{Call: c} + c_call := _m.On("GetLastPhaseUpdatedAt", matchers...) + return &MutableTaskNodeStatus_GetLastPhaseUpdatedAt{Call: c_call} } // GetLastPhaseUpdatedAt provides a mock function with given fields: @@ -86,13 +86,13 @@ func (_m MutableTaskNodeStatus_GetPhase) Return(_a0 int) *MutableTaskNodeStatus_ } func (_m *MutableTaskNodeStatus) OnGetPhase() *MutableTaskNodeStatus_GetPhase { - c := _m.On("GetPhase") - return &MutableTaskNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase") + return &MutableTaskNodeStatus_GetPhase{Call: c_call} } func (_m *MutableTaskNodeStatus) OnGetPhaseMatch(matchers ...interface{}) *MutableTaskNodeStatus_GetPhase { - c := _m.On("GetPhase", matchers...) - return &MutableTaskNodeStatus_GetPhase{Call: c} + c_call := _m.On("GetPhase", matchers...) + return &MutableTaskNodeStatus_GetPhase{Call: c_call} } // GetPhase provides a mock function with given fields: @@ -118,13 +118,13 @@ func (_m MutableTaskNodeStatus_GetPhaseVersion) Return(_a0 uint32) *MutableTaskN } func (_m *MutableTaskNodeStatus) OnGetPhaseVersion() *MutableTaskNodeStatus_GetPhaseVersion { - c := _m.On("GetPhaseVersion") - return &MutableTaskNodeStatus_GetPhaseVersion{Call: c} + c_call := _m.On("GetPhaseVersion") + return &MutableTaskNodeStatus_GetPhaseVersion{Call: c_call} } func (_m *MutableTaskNodeStatus) OnGetPhaseVersionMatch(matchers ...interface{}) *MutableTaskNodeStatus_GetPhaseVersion { - c := _m.On("GetPhaseVersion", matchers...) - return &MutableTaskNodeStatus_GetPhaseVersion{Call: c} + c_call := _m.On("GetPhaseVersion", matchers...) + return &MutableTaskNodeStatus_GetPhaseVersion{Call: c_call} } // GetPhaseVersion provides a mock function with given fields: @@ -150,13 +150,13 @@ func (_m MutableTaskNodeStatus_GetPluginState) Return(_a0 []byte) *MutableTaskNo } func (_m *MutableTaskNodeStatus) OnGetPluginState() *MutableTaskNodeStatus_GetPluginState { - c := _m.On("GetPluginState") - return &MutableTaskNodeStatus_GetPluginState{Call: c} + c_call := _m.On("GetPluginState") + return &MutableTaskNodeStatus_GetPluginState{Call: c_call} } func (_m *MutableTaskNodeStatus) OnGetPluginStateMatch(matchers ...interface{}) *MutableTaskNodeStatus_GetPluginState { - c := _m.On("GetPluginState", matchers...) - return &MutableTaskNodeStatus_GetPluginState{Call: c} + c_call := _m.On("GetPluginState", matchers...) + return &MutableTaskNodeStatus_GetPluginState{Call: c_call} } // GetPluginState provides a mock function with given fields: @@ -184,13 +184,13 @@ func (_m MutableTaskNodeStatus_GetPluginStateVersion) Return(_a0 uint32) *Mutabl } func (_m *MutableTaskNodeStatus) OnGetPluginStateVersion() *MutableTaskNodeStatus_GetPluginStateVersion { - c := _m.On("GetPluginStateVersion") - return &MutableTaskNodeStatus_GetPluginStateVersion{Call: c} + c_call := _m.On("GetPluginStateVersion") + return &MutableTaskNodeStatus_GetPluginStateVersion{Call: c_call} } func (_m *MutableTaskNodeStatus) OnGetPluginStateVersionMatch(matchers ...interface{}) *MutableTaskNodeStatus_GetPluginStateVersion { - c := _m.On("GetPluginStateVersion", matchers...) - return &MutableTaskNodeStatus_GetPluginStateVersion{Call: c} + c_call := _m.On("GetPluginStateVersion", matchers...) + return &MutableTaskNodeStatus_GetPluginStateVersion{Call: c_call} } // GetPluginStateVersion provides a mock function with given fields: @@ -216,13 +216,13 @@ func (_m MutableTaskNodeStatus_IsDirty) Return(_a0 bool) *MutableTaskNodeStatus_ } func (_m *MutableTaskNodeStatus) OnIsDirty() *MutableTaskNodeStatus_IsDirty { - c := _m.On("IsDirty") - return &MutableTaskNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty") + return &MutableTaskNodeStatus_IsDirty{Call: c_call} } func (_m *MutableTaskNodeStatus) OnIsDirtyMatch(matchers ...interface{}) *MutableTaskNodeStatus_IsDirty { - c := _m.On("IsDirty", matchers...) - return &MutableTaskNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty", matchers...) + return &MutableTaskNodeStatus_IsDirty{Call: c_call} } // IsDirty provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableWorkflowNodeStatus.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableWorkflowNodeStatus.go index 5d50960a1a..a12229e9c8 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableWorkflowNodeStatus.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/MutableWorkflowNodeStatus.go @@ -23,13 +23,13 @@ func (_m MutableWorkflowNodeStatus_GetExecutionError) Return(_a0 *core.Execution } func (_m *MutableWorkflowNodeStatus) OnGetExecutionError() *MutableWorkflowNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError") - return &MutableWorkflowNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError") + return &MutableWorkflowNodeStatus_GetExecutionError{Call: c_call} } func (_m *MutableWorkflowNodeStatus) OnGetExecutionErrorMatch(matchers ...interface{}) *MutableWorkflowNodeStatus_GetExecutionError { - c := _m.On("GetExecutionError", matchers...) - return &MutableWorkflowNodeStatus_GetExecutionError{Call: c} + c_call := _m.On("GetExecutionError", matchers...) + return &MutableWorkflowNodeStatus_GetExecutionError{Call: c_call} } // GetExecutionError provides a mock function with given fields: @@ -57,13 +57,13 @@ func (_m MutableWorkflowNodeStatus_GetWorkflowNodePhase) Return(_a0 v1alpha1.Wor } func (_m *MutableWorkflowNodeStatus) OnGetWorkflowNodePhase() *MutableWorkflowNodeStatus_GetWorkflowNodePhase { - c := _m.On("GetWorkflowNodePhase") - return &MutableWorkflowNodeStatus_GetWorkflowNodePhase{Call: c} + c_call := _m.On("GetWorkflowNodePhase") + return &MutableWorkflowNodeStatus_GetWorkflowNodePhase{Call: c_call} } func (_m *MutableWorkflowNodeStatus) OnGetWorkflowNodePhaseMatch(matchers ...interface{}) *MutableWorkflowNodeStatus_GetWorkflowNodePhase { - c := _m.On("GetWorkflowNodePhase", matchers...) - return &MutableWorkflowNodeStatus_GetWorkflowNodePhase{Call: c} + c_call := _m.On("GetWorkflowNodePhase", matchers...) + return &MutableWorkflowNodeStatus_GetWorkflowNodePhase{Call: c_call} } // GetWorkflowNodePhase provides a mock function with given fields: @@ -89,13 +89,13 @@ func (_m MutableWorkflowNodeStatus_IsDirty) Return(_a0 bool) *MutableWorkflowNod } func (_m *MutableWorkflowNodeStatus) OnIsDirty() *MutableWorkflowNodeStatus_IsDirty { - c := _m.On("IsDirty") - return &MutableWorkflowNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty") + return &MutableWorkflowNodeStatus_IsDirty{Call: c_call} } func (_m *MutableWorkflowNodeStatus) OnIsDirtyMatch(matchers ...interface{}) *MutableWorkflowNodeStatus_IsDirty { - c := _m.On("IsDirty", matchers...) - return &MutableWorkflowNodeStatus_IsDirty{Call: c} + c_call := _m.On("IsDirty", matchers...) + return &MutableWorkflowNodeStatus_IsDirty{Call: c_call} } // IsDirty provides a mock function with given fields: diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/NodeGetter.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/NodeGetter.go index fd5979d403..e5570eb0be 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/NodeGetter.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/NodeGetter.go @@ -21,13 +21,13 @@ func (_m NodeGetter_GetNode) Return(_a0 v1alpha1.ExecutableNode, _a1 bool) *Node } func (_m *NodeGetter) OnGetNode(nodeID string) *NodeGetter_GetNode { - c := _m.On("GetNode", nodeID) - return &NodeGetter_GetNode{Call: c} + c_call := _m.On("GetNode", nodeID) + return &NodeGetter_GetNode{Call: c_call} } func (_m *NodeGetter) OnGetNodeMatch(matchers ...interface{}) *NodeGetter_GetNode { - c := _m.On("GetNode", matchers...) - return &NodeGetter_GetNode{Call: c} + c_call := _m.On("GetNode", matchers...) + return &NodeGetter_GetNode{Call: c_call} } // GetNode provides a mock function with given fields: nodeID diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/NodeStatusGetter.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/NodeStatusGetter.go index 9fe9b44f08..9df44dcf97 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/NodeStatusGetter.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/NodeStatusGetter.go @@ -23,13 +23,13 @@ func (_m NodeStatusGetter_GetNodeExecutionStatus) Return(_a0 v1alpha1.Executable } func (_m *NodeStatusGetter) OnGetNodeExecutionStatus(ctx context.Context, id string) *NodeStatusGetter_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", ctx, id) - return &NodeStatusGetter_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", ctx, id) + return &NodeStatusGetter_GetNodeExecutionStatus{Call: c_call} } func (_m *NodeStatusGetter) OnGetNodeExecutionStatusMatch(matchers ...interface{}) *NodeStatusGetter_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", matchers...) - return &NodeStatusGetter_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", matchers...) + return &NodeStatusGetter_GetNodeExecutionStatus{Call: c_call} } // GetNodeExecutionStatus provides a mock function with given fields: ctx, id diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/SubWorkflowGetter.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/SubWorkflowGetter.go index 913e0e5ce3..dce6fe2099 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/SubWorkflowGetter.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/SubWorkflowGetter.go @@ -21,13 +21,13 @@ func (_m SubWorkflowGetter_FindSubWorkflow) Return(_a0 v1alpha1.ExecutableSubWor } func (_m *SubWorkflowGetter) OnFindSubWorkflow(subID string) *SubWorkflowGetter_FindSubWorkflow { - c := _m.On("FindSubWorkflow", subID) - return &SubWorkflowGetter_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", subID) + return &SubWorkflowGetter_FindSubWorkflow{Call: c_call} } func (_m *SubWorkflowGetter) OnFindSubWorkflowMatch(matchers ...interface{}) *SubWorkflowGetter_FindSubWorkflow { - c := _m.On("FindSubWorkflow", matchers...) - return &SubWorkflowGetter_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", matchers...) + return &SubWorkflowGetter_FindSubWorkflow{Call: c_call} } // FindSubWorkflow provides a mock function with given fields: subID diff --git a/pkg/apis/flyteworkflow/v1alpha1/mocks/TaskDetailsGetter.go b/pkg/apis/flyteworkflow/v1alpha1/mocks/TaskDetailsGetter.go index 8cc65642b2..70c1c1b558 100644 --- a/pkg/apis/flyteworkflow/v1alpha1/mocks/TaskDetailsGetter.go +++ b/pkg/apis/flyteworkflow/v1alpha1/mocks/TaskDetailsGetter.go @@ -21,13 +21,13 @@ func (_m TaskDetailsGetter_GetTask) Return(_a0 v1alpha1.ExecutableTask, _a1 erro } func (_m *TaskDetailsGetter) OnGetTask(id string) *TaskDetailsGetter_GetTask { - c := _m.On("GetTask", id) - return &TaskDetailsGetter_GetTask{Call: c} + c_call := _m.On("GetTask", id) + return &TaskDetailsGetter_GetTask{Call: c_call} } func (_m *TaskDetailsGetter) OnGetTaskMatch(matchers ...interface{}) *TaskDetailsGetter_GetTask { - c := _m.On("GetTask", matchers...) - return &TaskDetailsGetter_GetTask{Call: c} + c_call := _m.On("GetTask", matchers...) + return &TaskDetailsGetter_GetTask{Call: c_call} } // GetTask provides a mock function with given fields: id diff --git a/pkg/compiler/common/mocks/interface_provider.go b/pkg/compiler/common/mocks/interface_provider.go index 32a43c7891..e98de3b18d 100644 --- a/pkg/compiler/common/mocks/interface_provider.go +++ b/pkg/compiler/common/mocks/interface_provider.go @@ -21,13 +21,13 @@ func (_m InterfaceProvider_GetExpectedInputs) Return(_a0 *core.ParameterMap) *In } func (_m *InterfaceProvider) OnGetExpectedInputs() *InterfaceProvider_GetExpectedInputs { - c := _m.On("GetExpectedInputs") - return &InterfaceProvider_GetExpectedInputs{Call: c} + c_call := _m.On("GetExpectedInputs") + return &InterfaceProvider_GetExpectedInputs{Call: c_call} } func (_m *InterfaceProvider) OnGetExpectedInputsMatch(matchers ...interface{}) *InterfaceProvider_GetExpectedInputs { - c := _m.On("GetExpectedInputs", matchers...) - return &InterfaceProvider_GetExpectedInputs{Call: c} + c_call := _m.On("GetExpectedInputs", matchers...) + return &InterfaceProvider_GetExpectedInputs{Call: c_call} } // GetExpectedInputs provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m InterfaceProvider_GetExpectedOutputs) Return(_a0 *core.VariableMap) *In } func (_m *InterfaceProvider) OnGetExpectedOutputs() *InterfaceProvider_GetExpectedOutputs { - c := _m.On("GetExpectedOutputs") - return &InterfaceProvider_GetExpectedOutputs{Call: c} + c_call := _m.On("GetExpectedOutputs") + return &InterfaceProvider_GetExpectedOutputs{Call: c_call} } func (_m *InterfaceProvider) OnGetExpectedOutputsMatch(matchers ...interface{}) *InterfaceProvider_GetExpectedOutputs { - c := _m.On("GetExpectedOutputs", matchers...) - return &InterfaceProvider_GetExpectedOutputs{Call: c} + c_call := _m.On("GetExpectedOutputs", matchers...) + return &InterfaceProvider_GetExpectedOutputs{Call: c_call} } // GetExpectedOutputs provides a mock function with given fields: @@ -89,13 +89,13 @@ func (_m InterfaceProvider_GetID) Return(_a0 *core.Identifier) *InterfaceProvide } func (_m *InterfaceProvider) OnGetID() *InterfaceProvider_GetID { - c := _m.On("GetID") - return &InterfaceProvider_GetID{Call: c} + c_call := _m.On("GetID") + return &InterfaceProvider_GetID{Call: c_call} } func (_m *InterfaceProvider) OnGetIDMatch(matchers ...interface{}) *InterfaceProvider_GetID { - c := _m.On("GetID", matchers...) - return &InterfaceProvider_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &InterfaceProvider_GetID{Call: c_call} } // GetID provides a mock function with given fields: diff --git a/pkg/compiler/common/mocks/node.go b/pkg/compiler/common/mocks/node.go index e87b0ff2e2..bf601c4ad2 100644 --- a/pkg/compiler/common/mocks/node.go +++ b/pkg/compiler/common/mocks/node.go @@ -23,13 +23,13 @@ func (_m Node_GetBranchNode) Return(_a0 *core.BranchNode) *Node_GetBranchNode { } func (_m *Node) OnGetBranchNode() *Node_GetBranchNode { - c := _m.On("GetBranchNode") - return &Node_GetBranchNode{Call: c} + c_call := _m.On("GetBranchNode") + return &Node_GetBranchNode{Call: c_call} } func (_m *Node) OnGetBranchNodeMatch(matchers ...interface{}) *Node_GetBranchNode { - c := _m.On("GetBranchNode", matchers...) - return &Node_GetBranchNode{Call: c} + c_call := _m.On("GetBranchNode", matchers...) + return &Node_GetBranchNode{Call: c_call} } // GetBranchNode provides a mock function with given fields: @@ -57,13 +57,13 @@ func (_m Node_GetCoreNode) Return(_a0 *core.Node) *Node_GetCoreNode { } func (_m *Node) OnGetCoreNode() *Node_GetCoreNode { - c := _m.On("GetCoreNode") - return &Node_GetCoreNode{Call: c} + c_call := _m.On("GetCoreNode") + return &Node_GetCoreNode{Call: c_call} } func (_m *Node) OnGetCoreNodeMatch(matchers ...interface{}) *Node_GetCoreNode { - c := _m.On("GetCoreNode", matchers...) - return &Node_GetCoreNode{Call: c} + c_call := _m.On("GetCoreNode", matchers...) + return &Node_GetCoreNode{Call: c_call} } // GetCoreNode provides a mock function with given fields: @@ -91,13 +91,13 @@ func (_m Node_GetId) Return(_a0 string) *Node_GetId { } func (_m *Node) OnGetId() *Node_GetId { - c := _m.On("GetId") - return &Node_GetId{Call: c} + c_call := _m.On("GetId") + return &Node_GetId{Call: c_call} } func (_m *Node) OnGetIdMatch(matchers ...interface{}) *Node_GetId { - c := _m.On("GetId", matchers...) - return &Node_GetId{Call: c} + c_call := _m.On("GetId", matchers...) + return &Node_GetId{Call: c_call} } // GetId provides a mock function with given fields: @@ -123,13 +123,13 @@ func (_m Node_GetInputs) Return(_a0 []*core.Binding) *Node_GetInputs { } func (_m *Node) OnGetInputs() *Node_GetInputs { - c := _m.On("GetInputs") - return &Node_GetInputs{Call: c} + c_call := _m.On("GetInputs") + return &Node_GetInputs{Call: c_call} } func (_m *Node) OnGetInputsMatch(matchers ...interface{}) *Node_GetInputs { - c := _m.On("GetInputs", matchers...) - return &Node_GetInputs{Call: c} + c_call := _m.On("GetInputs", matchers...) + return &Node_GetInputs{Call: c_call} } // GetInputs provides a mock function with given fields: @@ -157,13 +157,13 @@ func (_m Node_GetInterface) Return(_a0 *core.TypedInterface) *Node_GetInterface } func (_m *Node) OnGetInterface() *Node_GetInterface { - c := _m.On("GetInterface") - return &Node_GetInterface{Call: c} + c_call := _m.On("GetInterface") + return &Node_GetInterface{Call: c_call} } func (_m *Node) OnGetInterfaceMatch(matchers ...interface{}) *Node_GetInterface { - c := _m.On("GetInterface", matchers...) - return &Node_GetInterface{Call: c} + c_call := _m.On("GetInterface", matchers...) + return &Node_GetInterface{Call: c_call} } // GetInterface provides a mock function with given fields: @@ -191,13 +191,13 @@ func (_m Node_GetMetadata) Return(_a0 *core.NodeMetadata) *Node_GetMetadata { } func (_m *Node) OnGetMetadata() *Node_GetMetadata { - c := _m.On("GetMetadata") - return &Node_GetMetadata{Call: c} + c_call := _m.On("GetMetadata") + return &Node_GetMetadata{Call: c_call} } func (_m *Node) OnGetMetadataMatch(matchers ...interface{}) *Node_GetMetadata { - c := _m.On("GetMetadata", matchers...) - return &Node_GetMetadata{Call: c} + c_call := _m.On("GetMetadata", matchers...) + return &Node_GetMetadata{Call: c_call} } // GetMetadata provides a mock function with given fields: @@ -225,13 +225,13 @@ func (_m Node_GetOutputAliases) Return(_a0 []*core.Alias) *Node_GetOutputAliases } func (_m *Node) OnGetOutputAliases() *Node_GetOutputAliases { - c := _m.On("GetOutputAliases") - return &Node_GetOutputAliases{Call: c} + c_call := _m.On("GetOutputAliases") + return &Node_GetOutputAliases{Call: c_call} } func (_m *Node) OnGetOutputAliasesMatch(matchers ...interface{}) *Node_GetOutputAliases { - c := _m.On("GetOutputAliases", matchers...) - return &Node_GetOutputAliases{Call: c} + c_call := _m.On("GetOutputAliases", matchers...) + return &Node_GetOutputAliases{Call: c_call} } // GetOutputAliases provides a mock function with given fields: @@ -259,13 +259,13 @@ func (_m Node_GetSubWorkflow) Return(_a0 common.Workflow) *Node_GetSubWorkflow { } func (_m *Node) OnGetSubWorkflow() *Node_GetSubWorkflow { - c := _m.On("GetSubWorkflow") - return &Node_GetSubWorkflow{Call: c} + c_call := _m.On("GetSubWorkflow") + return &Node_GetSubWorkflow{Call: c_call} } func (_m *Node) OnGetSubWorkflowMatch(matchers ...interface{}) *Node_GetSubWorkflow { - c := _m.On("GetSubWorkflow", matchers...) - return &Node_GetSubWorkflow{Call: c} + c_call := _m.On("GetSubWorkflow", matchers...) + return &Node_GetSubWorkflow{Call: c_call} } // GetSubWorkflow provides a mock function with given fields: @@ -293,13 +293,13 @@ func (_m Node_GetTask) Return(_a0 common.Task) *Node_GetTask { } func (_m *Node) OnGetTask() *Node_GetTask { - c := _m.On("GetTask") - return &Node_GetTask{Call: c} + c_call := _m.On("GetTask") + return &Node_GetTask{Call: c_call} } func (_m *Node) OnGetTaskMatch(matchers ...interface{}) *Node_GetTask { - c := _m.On("GetTask", matchers...) - return &Node_GetTask{Call: c} + c_call := _m.On("GetTask", matchers...) + return &Node_GetTask{Call: c_call} } // GetTask provides a mock function with given fields: @@ -327,13 +327,13 @@ func (_m Node_GetTaskNode) Return(_a0 *core.TaskNode) *Node_GetTaskNode { } func (_m *Node) OnGetTaskNode() *Node_GetTaskNode { - c := _m.On("GetTaskNode") - return &Node_GetTaskNode{Call: c} + c_call := _m.On("GetTaskNode") + return &Node_GetTaskNode{Call: c_call} } func (_m *Node) OnGetTaskNodeMatch(matchers ...interface{}) *Node_GetTaskNode { - c := _m.On("GetTaskNode", matchers...) - return &Node_GetTaskNode{Call: c} + c_call := _m.On("GetTaskNode", matchers...) + return &Node_GetTaskNode{Call: c_call} } // GetTaskNode provides a mock function with given fields: @@ -361,13 +361,13 @@ func (_m Node_GetUpstreamNodeIds) Return(_a0 []string) *Node_GetUpstreamNodeIds } func (_m *Node) OnGetUpstreamNodeIds() *Node_GetUpstreamNodeIds { - c := _m.On("GetUpstreamNodeIds") - return &Node_GetUpstreamNodeIds{Call: c} + c_call := _m.On("GetUpstreamNodeIds") + return &Node_GetUpstreamNodeIds{Call: c_call} } func (_m *Node) OnGetUpstreamNodeIdsMatch(matchers ...interface{}) *Node_GetUpstreamNodeIds { - c := _m.On("GetUpstreamNodeIds", matchers...) - return &Node_GetUpstreamNodeIds{Call: c} + c_call := _m.On("GetUpstreamNodeIds", matchers...) + return &Node_GetUpstreamNodeIds{Call: c_call} } // GetUpstreamNodeIds provides a mock function with given fields: @@ -395,13 +395,13 @@ func (_m Node_GetWorkflowNode) Return(_a0 *core.WorkflowNode) *Node_GetWorkflowN } func (_m *Node) OnGetWorkflowNode() *Node_GetWorkflowNode { - c := _m.On("GetWorkflowNode") - return &Node_GetWorkflowNode{Call: c} + c_call := _m.On("GetWorkflowNode") + return &Node_GetWorkflowNode{Call: c_call} } func (_m *Node) OnGetWorkflowNodeMatch(matchers ...interface{}) *Node_GetWorkflowNode { - c := _m.On("GetWorkflowNode", matchers...) - return &Node_GetWorkflowNode{Call: c} + c_call := _m.On("GetWorkflowNode", matchers...) + return &Node_GetWorkflowNode{Call: c_call} } // GetWorkflowNode provides a mock function with given fields: diff --git a/pkg/compiler/common/mocks/node_builder.go b/pkg/compiler/common/mocks/node_builder.go index 0671726241..a87ed756cc 100644 --- a/pkg/compiler/common/mocks/node_builder.go +++ b/pkg/compiler/common/mocks/node_builder.go @@ -23,13 +23,13 @@ func (_m NodeBuilder_GetBranchNode) Return(_a0 *core.BranchNode) *NodeBuilder_Ge } func (_m *NodeBuilder) OnGetBranchNode() *NodeBuilder_GetBranchNode { - c := _m.On("GetBranchNode") - return &NodeBuilder_GetBranchNode{Call: c} + c_call := _m.On("GetBranchNode") + return &NodeBuilder_GetBranchNode{Call: c_call} } func (_m *NodeBuilder) OnGetBranchNodeMatch(matchers ...interface{}) *NodeBuilder_GetBranchNode { - c := _m.On("GetBranchNode", matchers...) - return &NodeBuilder_GetBranchNode{Call: c} + c_call := _m.On("GetBranchNode", matchers...) + return &NodeBuilder_GetBranchNode{Call: c_call} } // GetBranchNode provides a mock function with given fields: @@ -57,13 +57,13 @@ func (_m NodeBuilder_GetCoreNode) Return(_a0 *core.Node) *NodeBuilder_GetCoreNod } func (_m *NodeBuilder) OnGetCoreNode() *NodeBuilder_GetCoreNode { - c := _m.On("GetCoreNode") - return &NodeBuilder_GetCoreNode{Call: c} + c_call := _m.On("GetCoreNode") + return &NodeBuilder_GetCoreNode{Call: c_call} } func (_m *NodeBuilder) OnGetCoreNodeMatch(matchers ...interface{}) *NodeBuilder_GetCoreNode { - c := _m.On("GetCoreNode", matchers...) - return &NodeBuilder_GetCoreNode{Call: c} + c_call := _m.On("GetCoreNode", matchers...) + return &NodeBuilder_GetCoreNode{Call: c_call} } // GetCoreNode provides a mock function with given fields: @@ -91,13 +91,13 @@ func (_m NodeBuilder_GetId) Return(_a0 string) *NodeBuilder_GetId { } func (_m *NodeBuilder) OnGetId() *NodeBuilder_GetId { - c := _m.On("GetId") - return &NodeBuilder_GetId{Call: c} + c_call := _m.On("GetId") + return &NodeBuilder_GetId{Call: c_call} } func (_m *NodeBuilder) OnGetIdMatch(matchers ...interface{}) *NodeBuilder_GetId { - c := _m.On("GetId", matchers...) - return &NodeBuilder_GetId{Call: c} + c_call := _m.On("GetId", matchers...) + return &NodeBuilder_GetId{Call: c_call} } // GetId provides a mock function with given fields: @@ -123,13 +123,13 @@ func (_m NodeBuilder_GetInputs) Return(_a0 []*core.Binding) *NodeBuilder_GetInpu } func (_m *NodeBuilder) OnGetInputs() *NodeBuilder_GetInputs { - c := _m.On("GetInputs") - return &NodeBuilder_GetInputs{Call: c} + c_call := _m.On("GetInputs") + return &NodeBuilder_GetInputs{Call: c_call} } func (_m *NodeBuilder) OnGetInputsMatch(matchers ...interface{}) *NodeBuilder_GetInputs { - c := _m.On("GetInputs", matchers...) - return &NodeBuilder_GetInputs{Call: c} + c_call := _m.On("GetInputs", matchers...) + return &NodeBuilder_GetInputs{Call: c_call} } // GetInputs provides a mock function with given fields: @@ -157,13 +157,13 @@ func (_m NodeBuilder_GetInterface) Return(_a0 *core.TypedInterface) *NodeBuilder } func (_m *NodeBuilder) OnGetInterface() *NodeBuilder_GetInterface { - c := _m.On("GetInterface") - return &NodeBuilder_GetInterface{Call: c} + c_call := _m.On("GetInterface") + return &NodeBuilder_GetInterface{Call: c_call} } func (_m *NodeBuilder) OnGetInterfaceMatch(matchers ...interface{}) *NodeBuilder_GetInterface { - c := _m.On("GetInterface", matchers...) - return &NodeBuilder_GetInterface{Call: c} + c_call := _m.On("GetInterface", matchers...) + return &NodeBuilder_GetInterface{Call: c_call} } // GetInterface provides a mock function with given fields: @@ -191,13 +191,13 @@ func (_m NodeBuilder_GetMetadata) Return(_a0 *core.NodeMetadata) *NodeBuilder_Ge } func (_m *NodeBuilder) OnGetMetadata() *NodeBuilder_GetMetadata { - c := _m.On("GetMetadata") - return &NodeBuilder_GetMetadata{Call: c} + c_call := _m.On("GetMetadata") + return &NodeBuilder_GetMetadata{Call: c_call} } func (_m *NodeBuilder) OnGetMetadataMatch(matchers ...interface{}) *NodeBuilder_GetMetadata { - c := _m.On("GetMetadata", matchers...) - return &NodeBuilder_GetMetadata{Call: c} + c_call := _m.On("GetMetadata", matchers...) + return &NodeBuilder_GetMetadata{Call: c_call} } // GetMetadata provides a mock function with given fields: @@ -225,13 +225,13 @@ func (_m NodeBuilder_GetOutputAliases) Return(_a0 []*core.Alias) *NodeBuilder_Ge } func (_m *NodeBuilder) OnGetOutputAliases() *NodeBuilder_GetOutputAliases { - c := _m.On("GetOutputAliases") - return &NodeBuilder_GetOutputAliases{Call: c} + c_call := _m.On("GetOutputAliases") + return &NodeBuilder_GetOutputAliases{Call: c_call} } func (_m *NodeBuilder) OnGetOutputAliasesMatch(matchers ...interface{}) *NodeBuilder_GetOutputAliases { - c := _m.On("GetOutputAliases", matchers...) - return &NodeBuilder_GetOutputAliases{Call: c} + c_call := _m.On("GetOutputAliases", matchers...) + return &NodeBuilder_GetOutputAliases{Call: c_call} } // GetOutputAliases provides a mock function with given fields: @@ -259,13 +259,13 @@ func (_m NodeBuilder_GetSubWorkflow) Return(_a0 common.Workflow) *NodeBuilder_Ge } func (_m *NodeBuilder) OnGetSubWorkflow() *NodeBuilder_GetSubWorkflow { - c := _m.On("GetSubWorkflow") - return &NodeBuilder_GetSubWorkflow{Call: c} + c_call := _m.On("GetSubWorkflow") + return &NodeBuilder_GetSubWorkflow{Call: c_call} } func (_m *NodeBuilder) OnGetSubWorkflowMatch(matchers ...interface{}) *NodeBuilder_GetSubWorkflow { - c := _m.On("GetSubWorkflow", matchers...) - return &NodeBuilder_GetSubWorkflow{Call: c} + c_call := _m.On("GetSubWorkflow", matchers...) + return &NodeBuilder_GetSubWorkflow{Call: c_call} } // GetSubWorkflow provides a mock function with given fields: @@ -293,13 +293,13 @@ func (_m NodeBuilder_GetTask) Return(_a0 common.Task) *NodeBuilder_GetTask { } func (_m *NodeBuilder) OnGetTask() *NodeBuilder_GetTask { - c := _m.On("GetTask") - return &NodeBuilder_GetTask{Call: c} + c_call := _m.On("GetTask") + return &NodeBuilder_GetTask{Call: c_call} } func (_m *NodeBuilder) OnGetTaskMatch(matchers ...interface{}) *NodeBuilder_GetTask { - c := _m.On("GetTask", matchers...) - return &NodeBuilder_GetTask{Call: c} + c_call := _m.On("GetTask", matchers...) + return &NodeBuilder_GetTask{Call: c_call} } // GetTask provides a mock function with given fields: @@ -327,13 +327,13 @@ func (_m NodeBuilder_GetTaskNode) Return(_a0 *core.TaskNode) *NodeBuilder_GetTas } func (_m *NodeBuilder) OnGetTaskNode() *NodeBuilder_GetTaskNode { - c := _m.On("GetTaskNode") - return &NodeBuilder_GetTaskNode{Call: c} + c_call := _m.On("GetTaskNode") + return &NodeBuilder_GetTaskNode{Call: c_call} } func (_m *NodeBuilder) OnGetTaskNodeMatch(matchers ...interface{}) *NodeBuilder_GetTaskNode { - c := _m.On("GetTaskNode", matchers...) - return &NodeBuilder_GetTaskNode{Call: c} + c_call := _m.On("GetTaskNode", matchers...) + return &NodeBuilder_GetTaskNode{Call: c_call} } // GetTaskNode provides a mock function with given fields: @@ -361,13 +361,13 @@ func (_m NodeBuilder_GetUpstreamNodeIds) Return(_a0 []string) *NodeBuilder_GetUp } func (_m *NodeBuilder) OnGetUpstreamNodeIds() *NodeBuilder_GetUpstreamNodeIds { - c := _m.On("GetUpstreamNodeIds") - return &NodeBuilder_GetUpstreamNodeIds{Call: c} + c_call := _m.On("GetUpstreamNodeIds") + return &NodeBuilder_GetUpstreamNodeIds{Call: c_call} } func (_m *NodeBuilder) OnGetUpstreamNodeIdsMatch(matchers ...interface{}) *NodeBuilder_GetUpstreamNodeIds { - c := _m.On("GetUpstreamNodeIds", matchers...) - return &NodeBuilder_GetUpstreamNodeIds{Call: c} + c_call := _m.On("GetUpstreamNodeIds", matchers...) + return &NodeBuilder_GetUpstreamNodeIds{Call: c_call} } // GetUpstreamNodeIds provides a mock function with given fields: @@ -395,13 +395,13 @@ func (_m NodeBuilder_GetWorkflowNode) Return(_a0 *core.WorkflowNode) *NodeBuilde } func (_m *NodeBuilder) OnGetWorkflowNode() *NodeBuilder_GetWorkflowNode { - c := _m.On("GetWorkflowNode") - return &NodeBuilder_GetWorkflowNode{Call: c} + c_call := _m.On("GetWorkflowNode") + return &NodeBuilder_GetWorkflowNode{Call: c_call} } func (_m *NodeBuilder) OnGetWorkflowNodeMatch(matchers ...interface{}) *NodeBuilder_GetWorkflowNode { - c := _m.On("GetWorkflowNode", matchers...) - return &NodeBuilder_GetWorkflowNode{Call: c} + c_call := _m.On("GetWorkflowNode", matchers...) + return &NodeBuilder_GetWorkflowNode{Call: c_call} } // GetWorkflowNode provides a mock function with given fields: diff --git a/pkg/compiler/common/mocks/task.go b/pkg/compiler/common/mocks/task.go index 337fbe31ba..28a2f15dc1 100644 --- a/pkg/compiler/common/mocks/task.go +++ b/pkg/compiler/common/mocks/task.go @@ -21,13 +21,13 @@ func (_m Task_GetCoreTask) Return(_a0 *core.TaskTemplate) *Task_GetCoreTask { } func (_m *Task) OnGetCoreTask() *Task_GetCoreTask { - c := _m.On("GetCoreTask") - return &Task_GetCoreTask{Call: c} + c_call := _m.On("GetCoreTask") + return &Task_GetCoreTask{Call: c_call} } func (_m *Task) OnGetCoreTaskMatch(matchers ...interface{}) *Task_GetCoreTask { - c := _m.On("GetCoreTask", matchers...) - return &Task_GetCoreTask{Call: c} + c_call := _m.On("GetCoreTask", matchers...) + return &Task_GetCoreTask{Call: c_call} } // GetCoreTask provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m Task_GetID) Return(_a0 core.Identifier) *Task_GetID { } func (_m *Task) OnGetID() *Task_GetID { - c := _m.On("GetID") - return &Task_GetID{Call: c} + c_call := _m.On("GetID") + return &Task_GetID{Call: c_call} } func (_m *Task) OnGetIDMatch(matchers ...interface{}) *Task_GetID { - c := _m.On("GetID", matchers...) - return &Task_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &Task_GetID{Call: c_call} } // GetID provides a mock function with given fields: @@ -87,13 +87,13 @@ func (_m Task_GetInterface) Return(_a0 *core.TypedInterface) *Task_GetInterface } func (_m *Task) OnGetInterface() *Task_GetInterface { - c := _m.On("GetInterface") - return &Task_GetInterface{Call: c} + c_call := _m.On("GetInterface") + return &Task_GetInterface{Call: c_call} } func (_m *Task) OnGetInterfaceMatch(matchers ...interface{}) *Task_GetInterface { - c := _m.On("GetInterface", matchers...) - return &Task_GetInterface{Call: c} + c_call := _m.On("GetInterface", matchers...) + return &Task_GetInterface{Call: c_call} } // GetInterface provides a mock function with given fields: diff --git a/pkg/compiler/common/mocks/workflow.go b/pkg/compiler/common/mocks/workflow.go index 83d5f26620..1d4eac9d91 100644 --- a/pkg/compiler/common/mocks/workflow.go +++ b/pkg/compiler/common/mocks/workflow.go @@ -23,13 +23,13 @@ func (_m Workflow_GetCompiledSubWorkflow) Return(wf *core.CompiledWorkflow, foun } func (_m *Workflow) OnGetCompiledSubWorkflow(id core.Identifier) *Workflow_GetCompiledSubWorkflow { - c := _m.On("GetCompiledSubWorkflow", id) - return &Workflow_GetCompiledSubWorkflow{Call: c} + c_call := _m.On("GetCompiledSubWorkflow", id) + return &Workflow_GetCompiledSubWorkflow{Call: c_call} } func (_m *Workflow) OnGetCompiledSubWorkflowMatch(matchers ...interface{}) *Workflow_GetCompiledSubWorkflow { - c := _m.On("GetCompiledSubWorkflow", matchers...) - return &Workflow_GetCompiledSubWorkflow{Call: c} + c_call := _m.On("GetCompiledSubWorkflow", matchers...) + return &Workflow_GetCompiledSubWorkflow{Call: c_call} } // GetCompiledSubWorkflow provides a mock function with given fields: id @@ -64,13 +64,13 @@ func (_m Workflow_GetCoreWorkflow) Return(_a0 *core.CompiledWorkflow) *Workflow_ } func (_m *Workflow) OnGetCoreWorkflow() *Workflow_GetCoreWorkflow { - c := _m.On("GetCoreWorkflow") - return &Workflow_GetCoreWorkflow{Call: c} + c_call := _m.On("GetCoreWorkflow") + return &Workflow_GetCoreWorkflow{Call: c_call} } func (_m *Workflow) OnGetCoreWorkflowMatch(matchers ...interface{}) *Workflow_GetCoreWorkflow { - c := _m.On("GetCoreWorkflow", matchers...) - return &Workflow_GetCoreWorkflow{Call: c} + c_call := _m.On("GetCoreWorkflow", matchers...) + return &Workflow_GetCoreWorkflow{Call: c_call} } // GetCoreWorkflow provides a mock function with given fields: @@ -98,13 +98,13 @@ func (_m Workflow_GetDownstreamNodes) Return(_a0 common.StringAdjacencyList) *Wo } func (_m *Workflow) OnGetDownstreamNodes() *Workflow_GetDownstreamNodes { - c := _m.On("GetDownstreamNodes") - return &Workflow_GetDownstreamNodes{Call: c} + c_call := _m.On("GetDownstreamNodes") + return &Workflow_GetDownstreamNodes{Call: c_call} } func (_m *Workflow) OnGetDownstreamNodesMatch(matchers ...interface{}) *Workflow_GetDownstreamNodes { - c := _m.On("GetDownstreamNodes", matchers...) - return &Workflow_GetDownstreamNodes{Call: c} + c_call := _m.On("GetDownstreamNodes", matchers...) + return &Workflow_GetDownstreamNodes{Call: c_call} } // GetDownstreamNodes provides a mock function with given fields: @@ -132,13 +132,13 @@ func (_m Workflow_GetFailureNode) Return(_a0 common.Node) *Workflow_GetFailureNo } func (_m *Workflow) OnGetFailureNode() *Workflow_GetFailureNode { - c := _m.On("GetFailureNode") - return &Workflow_GetFailureNode{Call: c} + c_call := _m.On("GetFailureNode") + return &Workflow_GetFailureNode{Call: c_call} } func (_m *Workflow) OnGetFailureNodeMatch(matchers ...interface{}) *Workflow_GetFailureNode { - c := _m.On("GetFailureNode", matchers...) - return &Workflow_GetFailureNode{Call: c} + c_call := _m.On("GetFailureNode", matchers...) + return &Workflow_GetFailureNode{Call: c_call} } // GetFailureNode provides a mock function with given fields: @@ -166,13 +166,13 @@ func (_m Workflow_GetLaunchPlan) Return(wf common.InterfaceProvider, found bool) } func (_m *Workflow) OnGetLaunchPlan(id core.Identifier) *Workflow_GetLaunchPlan { - c := _m.On("GetLaunchPlan", id) - return &Workflow_GetLaunchPlan{Call: c} + c_call := _m.On("GetLaunchPlan", id) + return &Workflow_GetLaunchPlan{Call: c_call} } func (_m *Workflow) OnGetLaunchPlanMatch(matchers ...interface{}) *Workflow_GetLaunchPlan { - c := _m.On("GetLaunchPlan", matchers...) - return &Workflow_GetLaunchPlan{Call: c} + c_call := _m.On("GetLaunchPlan", matchers...) + return &Workflow_GetLaunchPlan{Call: c_call} } // GetLaunchPlan provides a mock function with given fields: id @@ -207,13 +207,13 @@ func (_m Workflow_GetNode) Return(node common.NodeBuilder, found bool) *Workflow } func (_m *Workflow) OnGetNode(id string) *Workflow_GetNode { - c := _m.On("GetNode", id) - return &Workflow_GetNode{Call: c} + c_call := _m.On("GetNode", id) + return &Workflow_GetNode{Call: c_call} } func (_m *Workflow) OnGetNodeMatch(matchers ...interface{}) *Workflow_GetNode { - c := _m.On("GetNode", matchers...) - return &Workflow_GetNode{Call: c} + c_call := _m.On("GetNode", matchers...) + return &Workflow_GetNode{Call: c_call} } // GetNode provides a mock function with given fields: id @@ -248,13 +248,13 @@ func (_m Workflow_GetNodes) Return(_a0 common.NodeIndex) *Workflow_GetNodes { } func (_m *Workflow) OnGetNodes() *Workflow_GetNodes { - c := _m.On("GetNodes") - return &Workflow_GetNodes{Call: c} + c_call := _m.On("GetNodes") + return &Workflow_GetNodes{Call: c_call} } func (_m *Workflow) OnGetNodesMatch(matchers ...interface{}) *Workflow_GetNodes { - c := _m.On("GetNodes", matchers...) - return &Workflow_GetNodes{Call: c} + c_call := _m.On("GetNodes", matchers...) + return &Workflow_GetNodes{Call: c_call} } // GetNodes provides a mock function with given fields: @@ -282,13 +282,13 @@ func (_m Workflow_GetSubWorkflow) Return(wf *core.CompiledWorkflow, found bool) } func (_m *Workflow) OnGetSubWorkflow(id core.Identifier) *Workflow_GetSubWorkflow { - c := _m.On("GetSubWorkflow", id) - return &Workflow_GetSubWorkflow{Call: c} + c_call := _m.On("GetSubWorkflow", id) + return &Workflow_GetSubWorkflow{Call: c_call} } func (_m *Workflow) OnGetSubWorkflowMatch(matchers ...interface{}) *Workflow_GetSubWorkflow { - c := _m.On("GetSubWorkflow", matchers...) - return &Workflow_GetSubWorkflow{Call: c} + c_call := _m.On("GetSubWorkflow", matchers...) + return &Workflow_GetSubWorkflow{Call: c_call} } // GetSubWorkflow provides a mock function with given fields: id @@ -323,13 +323,13 @@ func (_m Workflow_GetTask) Return(task common.Task, found bool) *Workflow_GetTas } func (_m *Workflow) OnGetTask(id core.Identifier) *Workflow_GetTask { - c := _m.On("GetTask", id) - return &Workflow_GetTask{Call: c} + c_call := _m.On("GetTask", id) + return &Workflow_GetTask{Call: c_call} } func (_m *Workflow) OnGetTaskMatch(matchers ...interface{}) *Workflow_GetTask { - c := _m.On("GetTask", matchers...) - return &Workflow_GetTask{Call: c} + c_call := _m.On("GetTask", matchers...) + return &Workflow_GetTask{Call: c_call} } // GetTask provides a mock function with given fields: id @@ -364,13 +364,13 @@ func (_m Workflow_GetTasks) Return(_a0 common.TaskIndex) *Workflow_GetTasks { } func (_m *Workflow) OnGetTasks() *Workflow_GetTasks { - c := _m.On("GetTasks") - return &Workflow_GetTasks{Call: c} + c_call := _m.On("GetTasks") + return &Workflow_GetTasks{Call: c_call} } func (_m *Workflow) OnGetTasksMatch(matchers ...interface{}) *Workflow_GetTasks { - c := _m.On("GetTasks", matchers...) - return &Workflow_GetTasks{Call: c} + c_call := _m.On("GetTasks", matchers...) + return &Workflow_GetTasks{Call: c_call} } // GetTasks provides a mock function with given fields: @@ -398,13 +398,13 @@ func (_m Workflow_GetUpstreamNodes) Return(_a0 common.StringAdjacencyList) *Work } func (_m *Workflow) OnGetUpstreamNodes() *Workflow_GetUpstreamNodes { - c := _m.On("GetUpstreamNodes") - return &Workflow_GetUpstreamNodes{Call: c} + c_call := _m.On("GetUpstreamNodes") + return &Workflow_GetUpstreamNodes{Call: c_call} } func (_m *Workflow) OnGetUpstreamNodesMatch(matchers ...interface{}) *Workflow_GetUpstreamNodes { - c := _m.On("GetUpstreamNodes", matchers...) - return &Workflow_GetUpstreamNodes{Call: c} + c_call := _m.On("GetUpstreamNodes", matchers...) + return &Workflow_GetUpstreamNodes{Call: c_call} } // GetUpstreamNodes provides a mock function with given fields: diff --git a/pkg/compiler/common/mocks/workflow_builder.go b/pkg/compiler/common/mocks/workflow_builder.go index 7764002775..8022b9f406 100644 --- a/pkg/compiler/common/mocks/workflow_builder.go +++ b/pkg/compiler/common/mocks/workflow_builder.go @@ -30,13 +30,13 @@ func (_m WorkflowBuilder_AddEdges) Return(ok bool) *WorkflowBuilder_AddEdges { } func (_m *WorkflowBuilder) OnAddEdges(n common.NodeBuilder, edgeDirection common.EdgeDirection, errs errors.CompileErrors) *WorkflowBuilder_AddEdges { - c := _m.On("AddEdges", n, edgeDirection, errs) - return &WorkflowBuilder_AddEdges{Call: c} + c_call := _m.On("AddEdges", n, edgeDirection, errs) + return &WorkflowBuilder_AddEdges{Call: c_call} } func (_m *WorkflowBuilder) OnAddEdgesMatch(matchers ...interface{}) *WorkflowBuilder_AddEdges { - c := _m.On("AddEdges", matchers...) - return &WorkflowBuilder_AddEdges{Call: c} + c_call := _m.On("AddEdges", matchers...) + return &WorkflowBuilder_AddEdges{Call: c_call} } // AddEdges provides a mock function with given fields: n, edgeDirection, errs @@ -67,13 +67,13 @@ func (_m WorkflowBuilder_AddNode) Return(node common.NodeBuilder, ok bool) *Work } func (_m *WorkflowBuilder) OnAddNode(n common.NodeBuilder, errs errors.CompileErrors) *WorkflowBuilder_AddNode { - c := _m.On("AddNode", n, errs) - return &WorkflowBuilder_AddNode{Call: c} + c_call := _m.On("AddNode", n, errs) + return &WorkflowBuilder_AddNode{Call: c_call} } func (_m *WorkflowBuilder) OnAddNodeMatch(matchers ...interface{}) *WorkflowBuilder_AddNode { - c := _m.On("AddNode", matchers...) - return &WorkflowBuilder_AddNode{Call: c} + c_call := _m.On("AddNode", matchers...) + return &WorkflowBuilder_AddNode{Call: c_call} } // AddNode provides a mock function with given fields: n, errs @@ -113,13 +113,13 @@ func (_m WorkflowBuilder_GetCompiledSubWorkflow) Return(wf *core.CompiledWorkflo } func (_m *WorkflowBuilder) OnGetCompiledSubWorkflow(id core.Identifier) *WorkflowBuilder_GetCompiledSubWorkflow { - c := _m.On("GetCompiledSubWorkflow", id) - return &WorkflowBuilder_GetCompiledSubWorkflow{Call: c} + c_call := _m.On("GetCompiledSubWorkflow", id) + return &WorkflowBuilder_GetCompiledSubWorkflow{Call: c_call} } func (_m *WorkflowBuilder) OnGetCompiledSubWorkflowMatch(matchers ...interface{}) *WorkflowBuilder_GetCompiledSubWorkflow { - c := _m.On("GetCompiledSubWorkflow", matchers...) - return &WorkflowBuilder_GetCompiledSubWorkflow{Call: c} + c_call := _m.On("GetCompiledSubWorkflow", matchers...) + return &WorkflowBuilder_GetCompiledSubWorkflow{Call: c_call} } // GetCompiledSubWorkflow provides a mock function with given fields: id @@ -154,13 +154,13 @@ func (_m WorkflowBuilder_GetCoreWorkflow) Return(_a0 *core.CompiledWorkflow) *Wo } func (_m *WorkflowBuilder) OnGetCoreWorkflow() *WorkflowBuilder_GetCoreWorkflow { - c := _m.On("GetCoreWorkflow") - return &WorkflowBuilder_GetCoreWorkflow{Call: c} + c_call := _m.On("GetCoreWorkflow") + return &WorkflowBuilder_GetCoreWorkflow{Call: c_call} } func (_m *WorkflowBuilder) OnGetCoreWorkflowMatch(matchers ...interface{}) *WorkflowBuilder_GetCoreWorkflow { - c := _m.On("GetCoreWorkflow", matchers...) - return &WorkflowBuilder_GetCoreWorkflow{Call: c} + c_call := _m.On("GetCoreWorkflow", matchers...) + return &WorkflowBuilder_GetCoreWorkflow{Call: c_call} } // GetCoreWorkflow provides a mock function with given fields: @@ -188,13 +188,13 @@ func (_m WorkflowBuilder_GetDownstreamNodes) Return(_a0 common.StringAdjacencyLi } func (_m *WorkflowBuilder) OnGetDownstreamNodes() *WorkflowBuilder_GetDownstreamNodes { - c := _m.On("GetDownstreamNodes") - return &WorkflowBuilder_GetDownstreamNodes{Call: c} + c_call := _m.On("GetDownstreamNodes") + return &WorkflowBuilder_GetDownstreamNodes{Call: c_call} } func (_m *WorkflowBuilder) OnGetDownstreamNodesMatch(matchers ...interface{}) *WorkflowBuilder_GetDownstreamNodes { - c := _m.On("GetDownstreamNodes", matchers...) - return &WorkflowBuilder_GetDownstreamNodes{Call: c} + c_call := _m.On("GetDownstreamNodes", matchers...) + return &WorkflowBuilder_GetDownstreamNodes{Call: c_call} } // GetDownstreamNodes provides a mock function with given fields: @@ -222,13 +222,13 @@ func (_m WorkflowBuilder_GetFailureNode) Return(_a0 common.Node) *WorkflowBuilde } func (_m *WorkflowBuilder) OnGetFailureNode() *WorkflowBuilder_GetFailureNode { - c := _m.On("GetFailureNode") - return &WorkflowBuilder_GetFailureNode{Call: c} + c_call := _m.On("GetFailureNode") + return &WorkflowBuilder_GetFailureNode{Call: c_call} } func (_m *WorkflowBuilder) OnGetFailureNodeMatch(matchers ...interface{}) *WorkflowBuilder_GetFailureNode { - c := _m.On("GetFailureNode", matchers...) - return &WorkflowBuilder_GetFailureNode{Call: c} + c_call := _m.On("GetFailureNode", matchers...) + return &WorkflowBuilder_GetFailureNode{Call: c_call} } // GetFailureNode provides a mock function with given fields: @@ -256,13 +256,13 @@ func (_m WorkflowBuilder_GetLaunchPlan) Return(wf common.InterfaceProvider, foun } func (_m *WorkflowBuilder) OnGetLaunchPlan(id core.Identifier) *WorkflowBuilder_GetLaunchPlan { - c := _m.On("GetLaunchPlan", id) - return &WorkflowBuilder_GetLaunchPlan{Call: c} + c_call := _m.On("GetLaunchPlan", id) + return &WorkflowBuilder_GetLaunchPlan{Call: c_call} } func (_m *WorkflowBuilder) OnGetLaunchPlanMatch(matchers ...interface{}) *WorkflowBuilder_GetLaunchPlan { - c := _m.On("GetLaunchPlan", matchers...) - return &WorkflowBuilder_GetLaunchPlan{Call: c} + c_call := _m.On("GetLaunchPlan", matchers...) + return &WorkflowBuilder_GetLaunchPlan{Call: c_call} } // GetLaunchPlan provides a mock function with given fields: id @@ -297,13 +297,13 @@ func (_m WorkflowBuilder_GetNode) Return(node common.NodeBuilder, found bool) *W } func (_m *WorkflowBuilder) OnGetNode(id string) *WorkflowBuilder_GetNode { - c := _m.On("GetNode", id) - return &WorkflowBuilder_GetNode{Call: c} + c_call := _m.On("GetNode", id) + return &WorkflowBuilder_GetNode{Call: c_call} } func (_m *WorkflowBuilder) OnGetNodeMatch(matchers ...interface{}) *WorkflowBuilder_GetNode { - c := _m.On("GetNode", matchers...) - return &WorkflowBuilder_GetNode{Call: c} + c_call := _m.On("GetNode", matchers...) + return &WorkflowBuilder_GetNode{Call: c_call} } // GetNode provides a mock function with given fields: id @@ -338,13 +338,13 @@ func (_m WorkflowBuilder_GetNodes) Return(_a0 common.NodeIndex) *WorkflowBuilder } func (_m *WorkflowBuilder) OnGetNodes() *WorkflowBuilder_GetNodes { - c := _m.On("GetNodes") - return &WorkflowBuilder_GetNodes{Call: c} + c_call := _m.On("GetNodes") + return &WorkflowBuilder_GetNodes{Call: c_call} } func (_m *WorkflowBuilder) OnGetNodesMatch(matchers ...interface{}) *WorkflowBuilder_GetNodes { - c := _m.On("GetNodes", matchers...) - return &WorkflowBuilder_GetNodes{Call: c} + c_call := _m.On("GetNodes", matchers...) + return &WorkflowBuilder_GetNodes{Call: c_call} } // GetNodes provides a mock function with given fields: @@ -372,13 +372,13 @@ func (_m WorkflowBuilder_GetOrCreateNodeBuilder) Return(_a0 common.NodeBuilder) } func (_m *WorkflowBuilder) OnGetOrCreateNodeBuilder(n *core.Node) *WorkflowBuilder_GetOrCreateNodeBuilder { - c := _m.On("GetOrCreateNodeBuilder", n) - return &WorkflowBuilder_GetOrCreateNodeBuilder{Call: c} + c_call := _m.On("GetOrCreateNodeBuilder", n) + return &WorkflowBuilder_GetOrCreateNodeBuilder{Call: c_call} } func (_m *WorkflowBuilder) OnGetOrCreateNodeBuilderMatch(matchers ...interface{}) *WorkflowBuilder_GetOrCreateNodeBuilder { - c := _m.On("GetOrCreateNodeBuilder", matchers...) - return &WorkflowBuilder_GetOrCreateNodeBuilder{Call: c} + c_call := _m.On("GetOrCreateNodeBuilder", matchers...) + return &WorkflowBuilder_GetOrCreateNodeBuilder{Call: c_call} } // GetOrCreateNodeBuilder provides a mock function with given fields: n @@ -406,13 +406,13 @@ func (_m WorkflowBuilder_GetSubWorkflow) Return(wf *core.CompiledWorkflow, found } func (_m *WorkflowBuilder) OnGetSubWorkflow(id core.Identifier) *WorkflowBuilder_GetSubWorkflow { - c := _m.On("GetSubWorkflow", id) - return &WorkflowBuilder_GetSubWorkflow{Call: c} + c_call := _m.On("GetSubWorkflow", id) + return &WorkflowBuilder_GetSubWorkflow{Call: c_call} } func (_m *WorkflowBuilder) OnGetSubWorkflowMatch(matchers ...interface{}) *WorkflowBuilder_GetSubWorkflow { - c := _m.On("GetSubWorkflow", matchers...) - return &WorkflowBuilder_GetSubWorkflow{Call: c} + c_call := _m.On("GetSubWorkflow", matchers...) + return &WorkflowBuilder_GetSubWorkflow{Call: c_call} } // GetSubWorkflow provides a mock function with given fields: id @@ -447,13 +447,13 @@ func (_m WorkflowBuilder_GetTask) Return(task common.Task, found bool) *Workflow } func (_m *WorkflowBuilder) OnGetTask(id core.Identifier) *WorkflowBuilder_GetTask { - c := _m.On("GetTask", id) - return &WorkflowBuilder_GetTask{Call: c} + c_call := _m.On("GetTask", id) + return &WorkflowBuilder_GetTask{Call: c_call} } func (_m *WorkflowBuilder) OnGetTaskMatch(matchers ...interface{}) *WorkflowBuilder_GetTask { - c := _m.On("GetTask", matchers...) - return &WorkflowBuilder_GetTask{Call: c} + c_call := _m.On("GetTask", matchers...) + return &WorkflowBuilder_GetTask{Call: c_call} } // GetTask provides a mock function with given fields: id @@ -488,13 +488,13 @@ func (_m WorkflowBuilder_GetTasks) Return(_a0 common.TaskIndex) *WorkflowBuilder } func (_m *WorkflowBuilder) OnGetTasks() *WorkflowBuilder_GetTasks { - c := _m.On("GetTasks") - return &WorkflowBuilder_GetTasks{Call: c} + c_call := _m.On("GetTasks") + return &WorkflowBuilder_GetTasks{Call: c_call} } func (_m *WorkflowBuilder) OnGetTasksMatch(matchers ...interface{}) *WorkflowBuilder_GetTasks { - c := _m.On("GetTasks", matchers...) - return &WorkflowBuilder_GetTasks{Call: c} + c_call := _m.On("GetTasks", matchers...) + return &WorkflowBuilder_GetTasks{Call: c_call} } // GetTasks provides a mock function with given fields: @@ -522,13 +522,13 @@ func (_m WorkflowBuilder_GetUpstreamNodes) Return(_a0 common.StringAdjacencyList } func (_m *WorkflowBuilder) OnGetUpstreamNodes() *WorkflowBuilder_GetUpstreamNodes { - c := _m.On("GetUpstreamNodes") - return &WorkflowBuilder_GetUpstreamNodes{Call: c} + c_call := _m.On("GetUpstreamNodes") + return &WorkflowBuilder_GetUpstreamNodes{Call: c_call} } func (_m *WorkflowBuilder) OnGetUpstreamNodesMatch(matchers ...interface{}) *WorkflowBuilder_GetUpstreamNodes { - c := _m.On("GetUpstreamNodes", matchers...) - return &WorkflowBuilder_GetUpstreamNodes{Call: c} + c_call := _m.On("GetUpstreamNodes", matchers...) + return &WorkflowBuilder_GetUpstreamNodes{Call: c_call} } // GetUpstreamNodes provides a mock function with given fields: @@ -561,13 +561,13 @@ func (_m WorkflowBuilder_ValidateWorkflow) Return(_a0 common.Workflow, _a1 bool) } func (_m *WorkflowBuilder) OnValidateWorkflow(fg *core.CompiledWorkflow, errs errors.CompileErrors) *WorkflowBuilder_ValidateWorkflow { - c := _m.On("ValidateWorkflow", fg, errs) - return &WorkflowBuilder_ValidateWorkflow{Call: c} + c_call := _m.On("ValidateWorkflow", fg, errs) + return &WorkflowBuilder_ValidateWorkflow{Call: c_call} } func (_m *WorkflowBuilder) OnValidateWorkflowMatch(matchers ...interface{}) *WorkflowBuilder_ValidateWorkflow { - c := _m.On("ValidateWorkflow", matchers...) - return &WorkflowBuilder_ValidateWorkflow{Call: c} + c_call := _m.On("ValidateWorkflow", matchers...) + return &WorkflowBuilder_ValidateWorkflow{Call: c_call} } // ValidateWorkflow provides a mock function with given fields: fg, errs diff --git a/pkg/controller/config/config_flags.go b/pkg/controller/config/config_flags.go index 6c60e9c43a..9843def9b4 100755 --- a/pkg/controller/config/config_flags.go +++ b/pkg/controller/config/config_flags.go @@ -95,12 +95,12 @@ func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { cmdFlags.Int(fmt.Sprintf("%v%v", prefix, "max-streak-length"), defaultConfig.MaxStreakLength, "Maximum number of consecutive rounds that one propeller worker can use for one workflow - >1 => turbo-mode is enabled.") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "event-config.raw-output-policy"), defaultConfig.EventConfig.RawOutputPolicy, "How output data should be passed along in execution events.") cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "event-config.fallback-to-output-reference"), defaultConfig.EventConfig.FallbackToOutputReference, "Whether output data should be sent by reference when it is too large to be sent inline in execution events.") - cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "include-shard-key-label"), []string{}, "Include the specified shard key label in the k8s FlyteWorkflow CRD label selector") - cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "exclude-shard-key-label"), []string{}, "Exclude the specified shard key label from the k8s FlyteWorkflow CRD label selector") - cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "include-project-label"), []string{}, "Include the specified project label in the k8s FlyteWorkflow CRD label selector") - cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "exclude-project-label"), []string{}, "Exclude the specified project label from the k8s FlyteWorkflow CRD label selector") - cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "include-domain-label"), []string{}, "Include the specified domain label in the k8s FlyteWorkflow CRD label selector") - cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "exclude-domain-label"), []string{}, "Exclude the specified domain label from the k8s FlyteWorkflow CRD label selector") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "include-shard-key-label"), defaultConfig.IncludeShardKeyLabel, "Include the specified shard key label in the k8s FlyteWorkflow CRD label selector") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "exclude-shard-key-label"), defaultConfig.ExcludeShardKeyLabel, "Exclude the specified shard key label from the k8s FlyteWorkflow CRD label selector") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "include-project-label"), defaultConfig.IncludeProjectLabel, "Include the specified project label in the k8s FlyteWorkflow CRD label selector") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "exclude-project-label"), defaultConfig.ExcludeProjectLabel, "Exclude the specified project label from the k8s FlyteWorkflow CRD label selector") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "include-domain-label"), defaultConfig.IncludeDomainLabel, "Include the specified domain label in the k8s FlyteWorkflow CRD label selector") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "exclude-domain-label"), defaultConfig.ExcludeDomainLabel, "Exclude the specified domain label from the k8s FlyteWorkflow CRD label selector") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "cluster-id"), defaultConfig.ClusterID, "Unique cluster id running this flytepropeller instance with which to annotate execution events") cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "create-flyteworkflow-crd"), defaultConfig.CreateFlyteWorkflowCRD, "Enable creation of the FlyteWorkflow CRD on startup") return cmdFlags diff --git a/pkg/controller/config/config_flags_test.go b/pkg/controller/config/config_flags_test.go index 42cb308dc6..2580e0966a 100755 --- a/pkg/controller/config/config_flags_test.go +++ b/pkg/controller/config/config_flags_test.go @@ -732,7 +732,7 @@ func TestConfig_SetFlags(t *testing.T) { t.Run("Test_include-shard-key-label", func(t *testing.T) { t.Run("Override", func(t *testing.T) { - testValue := join_Config("1,1", ",") + testValue := join_Config(defaultConfig.IncludeShardKeyLabel, ",") cmdFlags.Set("include-shard-key-label", testValue) if vStringSlice, err := cmdFlags.GetStringSlice("include-shard-key-label"); err == nil { @@ -746,7 +746,7 @@ func TestConfig_SetFlags(t *testing.T) { t.Run("Test_exclude-shard-key-label", func(t *testing.T) { t.Run("Override", func(t *testing.T) { - testValue := join_Config("1,1", ",") + testValue := join_Config(defaultConfig.ExcludeShardKeyLabel, ",") cmdFlags.Set("exclude-shard-key-label", testValue) if vStringSlice, err := cmdFlags.GetStringSlice("exclude-shard-key-label"); err == nil { @@ -760,7 +760,7 @@ func TestConfig_SetFlags(t *testing.T) { t.Run("Test_include-project-label", func(t *testing.T) { t.Run("Override", func(t *testing.T) { - testValue := join_Config("1,1", ",") + testValue := join_Config(defaultConfig.IncludeProjectLabel, ",") cmdFlags.Set("include-project-label", testValue) if vStringSlice, err := cmdFlags.GetStringSlice("include-project-label"); err == nil { @@ -774,7 +774,7 @@ func TestConfig_SetFlags(t *testing.T) { t.Run("Test_exclude-project-label", func(t *testing.T) { t.Run("Override", func(t *testing.T) { - testValue := join_Config("1,1", ",") + testValue := join_Config(defaultConfig.ExcludeProjectLabel, ",") cmdFlags.Set("exclude-project-label", testValue) if vStringSlice, err := cmdFlags.GetStringSlice("exclude-project-label"); err == nil { @@ -788,7 +788,7 @@ func TestConfig_SetFlags(t *testing.T) { t.Run("Test_include-domain-label", func(t *testing.T) { t.Run("Override", func(t *testing.T) { - testValue := join_Config("1,1", ",") + testValue := join_Config(defaultConfig.IncludeDomainLabel, ",") cmdFlags.Set("include-domain-label", testValue) if vStringSlice, err := cmdFlags.GetStringSlice("include-domain-label"); err == nil { @@ -802,7 +802,7 @@ func TestConfig_SetFlags(t *testing.T) { t.Run("Test_exclude-domain-label", func(t *testing.T) { t.Run("Override", func(t *testing.T) { - testValue := join_Config("1,1", ",") + testValue := join_Config(defaultConfig.ExcludeDomainLabel, ",") cmdFlags.Set("exclude-domain-label", testValue) if vStringSlice, err := cmdFlags.GetStringSlice("exclude-domain-label"); err == nil { diff --git a/pkg/controller/executors/mocks/client.go b/pkg/controller/executors/mocks/client.go index 8b7c95c156..fb63a59c87 100644 --- a/pkg/controller/executors/mocks/client.go +++ b/pkg/controller/executors/mocks/client.go @@ -23,13 +23,13 @@ func (_m Client_GetCache) Return(_a0 cache.Cache) *Client_GetCache { } func (_m *Client) OnGetCache() *Client_GetCache { - c := _m.On("GetCache") - return &Client_GetCache{Call: c} + c_call := _m.On("GetCache") + return &Client_GetCache{Call: c_call} } func (_m *Client) OnGetCacheMatch(matchers ...interface{}) *Client_GetCache { - c := _m.On("GetCache", matchers...) - return &Client_GetCache{Call: c} + c_call := _m.On("GetCache", matchers...) + return &Client_GetCache{Call: c_call} } // GetCache provides a mock function with given fields: @@ -57,13 +57,13 @@ func (_m Client_GetClient) Return(_a0 client.Client) *Client_GetClient { } func (_m *Client) OnGetClient() *Client_GetClient { - c := _m.On("GetClient") - return &Client_GetClient{Call: c} + c_call := _m.On("GetClient") + return &Client_GetClient{Call: c_call} } func (_m *Client) OnGetClientMatch(matchers ...interface{}) *Client_GetClient { - c := _m.On("GetClient", matchers...) - return &Client_GetClient{Call: c} + c_call := _m.On("GetClient", matchers...) + return &Client_GetClient{Call: c_call} } // GetClient provides a mock function with given fields: diff --git a/pkg/controller/executors/mocks/control_flow.go b/pkg/controller/executors/mocks/control_flow.go index 8d9bfff64e..f5366e1580 100644 --- a/pkg/controller/executors/mocks/control_flow.go +++ b/pkg/controller/executors/mocks/control_flow.go @@ -18,13 +18,13 @@ func (_m ControlFlow_CurrentParallelism) Return(_a0 uint32) *ControlFlow_Current } func (_m *ControlFlow) OnCurrentParallelism() *ControlFlow_CurrentParallelism { - c := _m.On("CurrentParallelism") - return &ControlFlow_CurrentParallelism{Call: c} + c_call := _m.On("CurrentParallelism") + return &ControlFlow_CurrentParallelism{Call: c_call} } func (_m *ControlFlow) OnCurrentParallelismMatch(matchers ...interface{}) *ControlFlow_CurrentParallelism { - c := _m.On("CurrentParallelism", matchers...) - return &ControlFlow_CurrentParallelism{Call: c} + c_call := _m.On("CurrentParallelism", matchers...) + return &ControlFlow_CurrentParallelism{Call: c_call} } // CurrentParallelism provides a mock function with given fields: @@ -50,13 +50,13 @@ func (_m ControlFlow_IncrementParallelism) Return(_a0 uint32) *ControlFlow_Incre } func (_m *ControlFlow) OnIncrementParallelism() *ControlFlow_IncrementParallelism { - c := _m.On("IncrementParallelism") - return &ControlFlow_IncrementParallelism{Call: c} + c_call := _m.On("IncrementParallelism") + return &ControlFlow_IncrementParallelism{Call: c_call} } func (_m *ControlFlow) OnIncrementParallelismMatch(matchers ...interface{}) *ControlFlow_IncrementParallelism { - c := _m.On("IncrementParallelism", matchers...) - return &ControlFlow_IncrementParallelism{Call: c} + c_call := _m.On("IncrementParallelism", matchers...) + return &ControlFlow_IncrementParallelism{Call: c_call} } // IncrementParallelism provides a mock function with given fields: diff --git a/pkg/controller/executors/mocks/dag_structure.go b/pkg/controller/executors/mocks/dag_structure.go index dbe939bf3c..b96975d725 100644 --- a/pkg/controller/executors/mocks/dag_structure.go +++ b/pkg/controller/executors/mocks/dag_structure.go @@ -18,13 +18,13 @@ func (_m DAGStructure_FromNode) Return(_a0 []string, _a1 error) *DAGStructure_Fr } func (_m *DAGStructure) OnFromNode(id string) *DAGStructure_FromNode { - c := _m.On("FromNode", id) - return &DAGStructure_FromNode{Call: c} + c_call := _m.On("FromNode", id) + return &DAGStructure_FromNode{Call: c_call} } func (_m *DAGStructure) OnFromNodeMatch(matchers ...interface{}) *DAGStructure_FromNode { - c := _m.On("FromNode", matchers...) - return &DAGStructure_FromNode{Call: c} + c_call := _m.On("FromNode", matchers...) + return &DAGStructure_FromNode{Call: c_call} } // FromNode provides a mock function with given fields: id @@ -59,13 +59,13 @@ func (_m DAGStructure_ToNode) Return(_a0 []string, _a1 error) *DAGStructure_ToNo } func (_m *DAGStructure) OnToNode(id string) *DAGStructure_ToNode { - c := _m.On("ToNode", id) - return &DAGStructure_ToNode{Call: c} + c_call := _m.On("ToNode", id) + return &DAGStructure_ToNode{Call: c_call} } func (_m *DAGStructure) OnToNodeMatch(matchers ...interface{}) *DAGStructure_ToNode { - c := _m.On("ToNode", matchers...) - return &DAGStructure_ToNode{Call: c} + c_call := _m.On("ToNode", matchers...) + return &DAGStructure_ToNode{Call: c_call} } // ToNode provides a mock function with given fields: id diff --git a/pkg/controller/executors/mocks/dag_structure_with_start_node.go b/pkg/controller/executors/mocks/dag_structure_with_start_node.go index a296fafc35..dfc07c261d 100644 --- a/pkg/controller/executors/mocks/dag_structure_with_start_node.go +++ b/pkg/controller/executors/mocks/dag_structure_with_start_node.go @@ -21,13 +21,13 @@ func (_m DAGStructureWithStartNode_FromNode) Return(_a0 []string, _a1 error) *DA } func (_m *DAGStructureWithStartNode) OnFromNode(id string) *DAGStructureWithStartNode_FromNode { - c := _m.On("FromNode", id) - return &DAGStructureWithStartNode_FromNode{Call: c} + c_call := _m.On("FromNode", id) + return &DAGStructureWithStartNode_FromNode{Call: c_call} } func (_m *DAGStructureWithStartNode) OnFromNodeMatch(matchers ...interface{}) *DAGStructureWithStartNode_FromNode { - c := _m.On("FromNode", matchers...) - return &DAGStructureWithStartNode_FromNode{Call: c} + c_call := _m.On("FromNode", matchers...) + return &DAGStructureWithStartNode_FromNode{Call: c_call} } // FromNode provides a mock function with given fields: id @@ -62,13 +62,13 @@ func (_m DAGStructureWithStartNode_StartNode) Return(_a0 v1alpha1.ExecutableNode } func (_m *DAGStructureWithStartNode) OnStartNode() *DAGStructureWithStartNode_StartNode { - c := _m.On("StartNode") - return &DAGStructureWithStartNode_StartNode{Call: c} + c_call := _m.On("StartNode") + return &DAGStructureWithStartNode_StartNode{Call: c_call} } func (_m *DAGStructureWithStartNode) OnStartNodeMatch(matchers ...interface{}) *DAGStructureWithStartNode_StartNode { - c := _m.On("StartNode", matchers...) - return &DAGStructureWithStartNode_StartNode{Call: c} + c_call := _m.On("StartNode", matchers...) + return &DAGStructureWithStartNode_StartNode{Call: c_call} } // StartNode provides a mock function with given fields: @@ -96,13 +96,13 @@ func (_m DAGStructureWithStartNode_ToNode) Return(_a0 []string, _a1 error) *DAGS } func (_m *DAGStructureWithStartNode) OnToNode(id string) *DAGStructureWithStartNode_ToNode { - c := _m.On("ToNode", id) - return &DAGStructureWithStartNode_ToNode{Call: c} + c_call := _m.On("ToNode", id) + return &DAGStructureWithStartNode_ToNode{Call: c_call} } func (_m *DAGStructureWithStartNode) OnToNodeMatch(matchers ...interface{}) *DAGStructureWithStartNode_ToNode { - c := _m.On("ToNode", matchers...) - return &DAGStructureWithStartNode_ToNode{Call: c} + c_call := _m.On("ToNode", matchers...) + return &DAGStructureWithStartNode_ToNode{Call: c_call} } // ToNode provides a mock function with given fields: id diff --git a/pkg/controller/executors/mocks/execution_context.go b/pkg/controller/executors/mocks/execution_context.go index 76a62bed81..a949ed4dc2 100644 --- a/pkg/controller/executors/mocks/execution_context.go +++ b/pkg/controller/executors/mocks/execution_context.go @@ -29,13 +29,13 @@ func (_m ExecutionContext_CurrentParallelism) Return(_a0 uint32) *ExecutionConte } func (_m *ExecutionContext) OnCurrentParallelism() *ExecutionContext_CurrentParallelism { - c := _m.On("CurrentParallelism") - return &ExecutionContext_CurrentParallelism{Call: c} + c_call := _m.On("CurrentParallelism") + return &ExecutionContext_CurrentParallelism{Call: c_call} } func (_m *ExecutionContext) OnCurrentParallelismMatch(matchers ...interface{}) *ExecutionContext_CurrentParallelism { - c := _m.On("CurrentParallelism", matchers...) - return &ExecutionContext_CurrentParallelism{Call: c} + c_call := _m.On("CurrentParallelism", matchers...) + return &ExecutionContext_CurrentParallelism{Call: c_call} } // CurrentParallelism provides a mock function with given fields: @@ -61,13 +61,13 @@ func (_m ExecutionContext_FindSubWorkflow) Return(_a0 v1alpha1.ExecutableSubWork } func (_m *ExecutionContext) OnFindSubWorkflow(subID string) *ExecutionContext_FindSubWorkflow { - c := _m.On("FindSubWorkflow", subID) - return &ExecutionContext_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", subID) + return &ExecutionContext_FindSubWorkflow{Call: c_call} } func (_m *ExecutionContext) OnFindSubWorkflowMatch(matchers ...interface{}) *ExecutionContext_FindSubWorkflow { - c := _m.On("FindSubWorkflow", matchers...) - return &ExecutionContext_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", matchers...) + return &ExecutionContext_FindSubWorkflow{Call: c_call} } // FindSubWorkflow provides a mock function with given fields: subID @@ -95,13 +95,13 @@ func (_m ExecutionContext_GetAnnotations) Return(_a0 map[string]string) *Executi } func (_m *ExecutionContext) OnGetAnnotations() *ExecutionContext_GetAnnotations { - c := _m.On("GetAnnotations") - return &ExecutionContext_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations") + return &ExecutionContext_GetAnnotations{Call: c_call} } func (_m *ExecutionContext) OnGetAnnotationsMatch(matchers ...interface{}) *ExecutionContext_GetAnnotations { - c := _m.On("GetAnnotations", matchers...) - return &ExecutionContext_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations", matchers...) + return &ExecutionContext_GetAnnotations{Call: c_call} } // GetAnnotations provides a mock function with given fields: @@ -129,13 +129,13 @@ func (_m ExecutionContext_GetCreationTimestamp) Return(_a0 v1.Time) *ExecutionCo } func (_m *ExecutionContext) OnGetCreationTimestamp() *ExecutionContext_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp") - return &ExecutionContext_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp") + return &ExecutionContext_GetCreationTimestamp{Call: c_call} } func (_m *ExecutionContext) OnGetCreationTimestampMatch(matchers ...interface{}) *ExecutionContext_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp", matchers...) - return &ExecutionContext_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp", matchers...) + return &ExecutionContext_GetCreationTimestamp{Call: c_call} } // GetCreationTimestamp provides a mock function with given fields: @@ -161,13 +161,13 @@ func (_m ExecutionContext_GetEventVersion) Return(_a0 v1alpha1.EventVersion) *Ex } func (_m *ExecutionContext) OnGetEventVersion() *ExecutionContext_GetEventVersion { - c := _m.On("GetEventVersion") - return &ExecutionContext_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion") + return &ExecutionContext_GetEventVersion{Call: c_call} } func (_m *ExecutionContext) OnGetEventVersionMatch(matchers ...interface{}) *ExecutionContext_GetEventVersion { - c := _m.On("GetEventVersion", matchers...) - return &ExecutionContext_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion", matchers...) + return &ExecutionContext_GetEventVersion{Call: c_call} } // GetEventVersion provides a mock function with given fields: @@ -193,13 +193,13 @@ func (_m ExecutionContext_GetExecutionConfig) Return(_a0 v1alpha1.ExecutionConfi } func (_m *ExecutionContext) OnGetExecutionConfig() *ExecutionContext_GetExecutionConfig { - c := _m.On("GetExecutionConfig") - return &ExecutionContext_GetExecutionConfig{Call: c} + c_call := _m.On("GetExecutionConfig") + return &ExecutionContext_GetExecutionConfig{Call: c_call} } func (_m *ExecutionContext) OnGetExecutionConfigMatch(matchers ...interface{}) *ExecutionContext_GetExecutionConfig { - c := _m.On("GetExecutionConfig", matchers...) - return &ExecutionContext_GetExecutionConfig{Call: c} + c_call := _m.On("GetExecutionConfig", matchers...) + return &ExecutionContext_GetExecutionConfig{Call: c_call} } // GetExecutionConfig provides a mock function with given fields: @@ -225,13 +225,13 @@ func (_m ExecutionContext_GetExecutionID) Return(_a0 v1alpha1.WorkflowExecutionI } func (_m *ExecutionContext) OnGetExecutionID() *ExecutionContext_GetExecutionID { - c := _m.On("GetExecutionID") - return &ExecutionContext_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID") + return &ExecutionContext_GetExecutionID{Call: c_call} } func (_m *ExecutionContext) OnGetExecutionIDMatch(matchers ...interface{}) *ExecutionContext_GetExecutionID { - c := _m.On("GetExecutionID", matchers...) - return &ExecutionContext_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID", matchers...) + return &ExecutionContext_GetExecutionID{Call: c_call} } // GetExecutionID provides a mock function with given fields: @@ -257,13 +257,13 @@ func (_m ExecutionContext_GetID) Return(_a0 string) *ExecutionContext_GetID { } func (_m *ExecutionContext) OnGetID() *ExecutionContext_GetID { - c := _m.On("GetID") - return &ExecutionContext_GetID{Call: c} + c_call := _m.On("GetID") + return &ExecutionContext_GetID{Call: c_call} } func (_m *ExecutionContext) OnGetIDMatch(matchers ...interface{}) *ExecutionContext_GetID { - c := _m.On("GetID", matchers...) - return &ExecutionContext_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &ExecutionContext_GetID{Call: c_call} } // GetID provides a mock function with given fields: @@ -289,13 +289,13 @@ func (_m ExecutionContext_GetK8sWorkflowID) Return(_a0 types.NamespacedName) *Ex } func (_m *ExecutionContext) OnGetK8sWorkflowID() *ExecutionContext_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID") - return &ExecutionContext_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID") + return &ExecutionContext_GetK8sWorkflowID{Call: c_call} } func (_m *ExecutionContext) OnGetK8sWorkflowIDMatch(matchers ...interface{}) *ExecutionContext_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID", matchers...) - return &ExecutionContext_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID", matchers...) + return &ExecutionContext_GetK8sWorkflowID{Call: c_call} } // GetK8sWorkflowID provides a mock function with given fields: @@ -321,13 +321,13 @@ func (_m ExecutionContext_GetLabels) Return(_a0 map[string]string) *ExecutionCon } func (_m *ExecutionContext) OnGetLabels() *ExecutionContext_GetLabels { - c := _m.On("GetLabels") - return &ExecutionContext_GetLabels{Call: c} + c_call := _m.On("GetLabels") + return &ExecutionContext_GetLabels{Call: c_call} } func (_m *ExecutionContext) OnGetLabelsMatch(matchers ...interface{}) *ExecutionContext_GetLabels { - c := _m.On("GetLabels", matchers...) - return &ExecutionContext_GetLabels{Call: c} + c_call := _m.On("GetLabels", matchers...) + return &ExecutionContext_GetLabels{Call: c_call} } // GetLabels provides a mock function with given fields: @@ -355,13 +355,13 @@ func (_m ExecutionContext_GetName) Return(_a0 string) *ExecutionContext_GetName } func (_m *ExecutionContext) OnGetName() *ExecutionContext_GetName { - c := _m.On("GetName") - return &ExecutionContext_GetName{Call: c} + c_call := _m.On("GetName") + return &ExecutionContext_GetName{Call: c_call} } func (_m *ExecutionContext) OnGetNameMatch(matchers ...interface{}) *ExecutionContext_GetName { - c := _m.On("GetName", matchers...) - return &ExecutionContext_GetName{Call: c} + c_call := _m.On("GetName", matchers...) + return &ExecutionContext_GetName{Call: c_call} } // GetName provides a mock function with given fields: @@ -387,13 +387,13 @@ func (_m ExecutionContext_GetNamespace) Return(_a0 string) *ExecutionContext_Get } func (_m *ExecutionContext) OnGetNamespace() *ExecutionContext_GetNamespace { - c := _m.On("GetNamespace") - return &ExecutionContext_GetNamespace{Call: c} + c_call := _m.On("GetNamespace") + return &ExecutionContext_GetNamespace{Call: c_call} } func (_m *ExecutionContext) OnGetNamespaceMatch(matchers ...interface{}) *ExecutionContext_GetNamespace { - c := _m.On("GetNamespace", matchers...) - return &ExecutionContext_GetNamespace{Call: c} + c_call := _m.On("GetNamespace", matchers...) + return &ExecutionContext_GetNamespace{Call: c_call} } // GetNamespace provides a mock function with given fields: @@ -419,13 +419,13 @@ func (_m ExecutionContext_GetOnFailurePolicy) Return(_a0 v1alpha1.WorkflowOnFail } func (_m *ExecutionContext) OnGetOnFailurePolicy() *ExecutionContext_GetOnFailurePolicy { - c := _m.On("GetOnFailurePolicy") - return &ExecutionContext_GetOnFailurePolicy{Call: c} + c_call := _m.On("GetOnFailurePolicy") + return &ExecutionContext_GetOnFailurePolicy{Call: c_call} } func (_m *ExecutionContext) OnGetOnFailurePolicyMatch(matchers ...interface{}) *ExecutionContext_GetOnFailurePolicy { - c := _m.On("GetOnFailurePolicy", matchers...) - return &ExecutionContext_GetOnFailurePolicy{Call: c} + c_call := _m.On("GetOnFailurePolicy", matchers...) + return &ExecutionContext_GetOnFailurePolicy{Call: c_call} } // GetOnFailurePolicy provides a mock function with given fields: @@ -451,13 +451,13 @@ func (_m ExecutionContext_GetOwnerReference) Return(_a0 v1.OwnerReference) *Exec } func (_m *ExecutionContext) OnGetOwnerReference() *ExecutionContext_GetOwnerReference { - c := _m.On("GetOwnerReference") - return &ExecutionContext_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference") + return &ExecutionContext_GetOwnerReference{Call: c_call} } func (_m *ExecutionContext) OnGetOwnerReferenceMatch(matchers ...interface{}) *ExecutionContext_GetOwnerReference { - c := _m.On("GetOwnerReference", matchers...) - return &ExecutionContext_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference", matchers...) + return &ExecutionContext_GetOwnerReference{Call: c_call} } // GetOwnerReference provides a mock function with given fields: @@ -483,13 +483,13 @@ func (_m ExecutionContext_GetParentInfo) Return(_a0 executors.ImmutableParentInf } func (_m *ExecutionContext) OnGetParentInfo() *ExecutionContext_GetParentInfo { - c := _m.On("GetParentInfo") - return &ExecutionContext_GetParentInfo{Call: c} + c_call := _m.On("GetParentInfo") + return &ExecutionContext_GetParentInfo{Call: c_call} } func (_m *ExecutionContext) OnGetParentInfoMatch(matchers ...interface{}) *ExecutionContext_GetParentInfo { - c := _m.On("GetParentInfo", matchers...) - return &ExecutionContext_GetParentInfo{Call: c} + c_call := _m.On("GetParentInfo", matchers...) + return &ExecutionContext_GetParentInfo{Call: c_call} } // GetParentInfo provides a mock function with given fields: @@ -517,13 +517,13 @@ func (_m ExecutionContext_GetRawOutputDataConfig) Return(_a0 v1alpha1.RawOutputD } func (_m *ExecutionContext) OnGetRawOutputDataConfig() *ExecutionContext_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig") - return &ExecutionContext_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig") + return &ExecutionContext_GetRawOutputDataConfig{Call: c_call} } func (_m *ExecutionContext) OnGetRawOutputDataConfigMatch(matchers ...interface{}) *ExecutionContext_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig", matchers...) - return &ExecutionContext_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig", matchers...) + return &ExecutionContext_GetRawOutputDataConfig{Call: c_call} } // GetRawOutputDataConfig provides a mock function with given fields: @@ -549,13 +549,13 @@ func (_m ExecutionContext_GetSecurityContext) Return(_a0 core.SecurityContext) * } func (_m *ExecutionContext) OnGetSecurityContext() *ExecutionContext_GetSecurityContext { - c := _m.On("GetSecurityContext") - return &ExecutionContext_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext") + return &ExecutionContext_GetSecurityContext{Call: c_call} } func (_m *ExecutionContext) OnGetSecurityContextMatch(matchers ...interface{}) *ExecutionContext_GetSecurityContext { - c := _m.On("GetSecurityContext", matchers...) - return &ExecutionContext_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext", matchers...) + return &ExecutionContext_GetSecurityContext{Call: c_call} } // GetSecurityContext provides a mock function with given fields: @@ -581,13 +581,13 @@ func (_m ExecutionContext_GetServiceAccountName) Return(_a0 string) *ExecutionCo } func (_m *ExecutionContext) OnGetServiceAccountName() *ExecutionContext_GetServiceAccountName { - c := _m.On("GetServiceAccountName") - return &ExecutionContext_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName") + return &ExecutionContext_GetServiceAccountName{Call: c_call} } func (_m *ExecutionContext) OnGetServiceAccountNameMatch(matchers ...interface{}) *ExecutionContext_GetServiceAccountName { - c := _m.On("GetServiceAccountName", matchers...) - return &ExecutionContext_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName", matchers...) + return &ExecutionContext_GetServiceAccountName{Call: c_call} } // GetServiceAccountName provides a mock function with given fields: @@ -613,13 +613,13 @@ func (_m ExecutionContext_GetTask) Return(_a0 v1alpha1.ExecutableTask, _a1 error } func (_m *ExecutionContext) OnGetTask(id string) *ExecutionContext_GetTask { - c := _m.On("GetTask", id) - return &ExecutionContext_GetTask{Call: c} + c_call := _m.On("GetTask", id) + return &ExecutionContext_GetTask{Call: c_call} } func (_m *ExecutionContext) OnGetTaskMatch(matchers ...interface{}) *ExecutionContext_GetTask { - c := _m.On("GetTask", matchers...) - return &ExecutionContext_GetTask{Call: c} + c_call := _m.On("GetTask", matchers...) + return &ExecutionContext_GetTask{Call: c_call} } // GetTask provides a mock function with given fields: id @@ -654,13 +654,13 @@ func (_m ExecutionContext_IncrementParallelism) Return(_a0 uint32) *ExecutionCon } func (_m *ExecutionContext) OnIncrementParallelism() *ExecutionContext_IncrementParallelism { - c := _m.On("IncrementParallelism") - return &ExecutionContext_IncrementParallelism{Call: c} + c_call := _m.On("IncrementParallelism") + return &ExecutionContext_IncrementParallelism{Call: c_call} } func (_m *ExecutionContext) OnIncrementParallelismMatch(matchers ...interface{}) *ExecutionContext_IncrementParallelism { - c := _m.On("IncrementParallelism", matchers...) - return &ExecutionContext_IncrementParallelism{Call: c} + c_call := _m.On("IncrementParallelism", matchers...) + return &ExecutionContext_IncrementParallelism{Call: c_call} } // IncrementParallelism provides a mock function with given fields: @@ -686,13 +686,13 @@ func (_m ExecutionContext_IsInterruptible) Return(_a0 bool) *ExecutionContext_Is } func (_m *ExecutionContext) OnIsInterruptible() *ExecutionContext_IsInterruptible { - c := _m.On("IsInterruptible") - return &ExecutionContext_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible") + return &ExecutionContext_IsInterruptible{Call: c_call} } func (_m *ExecutionContext) OnIsInterruptibleMatch(matchers ...interface{}) *ExecutionContext_IsInterruptible { - c := _m.On("IsInterruptible", matchers...) - return &ExecutionContext_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible", matchers...) + return &ExecutionContext_IsInterruptible{Call: c_call} } // IsInterruptible provides a mock function with given fields: diff --git a/pkg/controller/executors/mocks/immutable_execution_context.go b/pkg/controller/executors/mocks/immutable_execution_context.go index fec05a4bc0..6c899c8118 100644 --- a/pkg/controller/executors/mocks/immutable_execution_context.go +++ b/pkg/controller/executors/mocks/immutable_execution_context.go @@ -28,13 +28,13 @@ func (_m ImmutableExecutionContext_GetAnnotations) Return(_a0 map[string]string) } func (_m *ImmutableExecutionContext) OnGetAnnotations() *ImmutableExecutionContext_GetAnnotations { - c := _m.On("GetAnnotations") - return &ImmutableExecutionContext_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations") + return &ImmutableExecutionContext_GetAnnotations{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetAnnotationsMatch(matchers ...interface{}) *ImmutableExecutionContext_GetAnnotations { - c := _m.On("GetAnnotations", matchers...) - return &ImmutableExecutionContext_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations", matchers...) + return &ImmutableExecutionContext_GetAnnotations{Call: c_call} } // GetAnnotations provides a mock function with given fields: @@ -62,13 +62,13 @@ func (_m ImmutableExecutionContext_GetCreationTimestamp) Return(_a0 v1.Time) *Im } func (_m *ImmutableExecutionContext) OnGetCreationTimestamp() *ImmutableExecutionContext_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp") - return &ImmutableExecutionContext_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp") + return &ImmutableExecutionContext_GetCreationTimestamp{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetCreationTimestampMatch(matchers ...interface{}) *ImmutableExecutionContext_GetCreationTimestamp { - c := _m.On("GetCreationTimestamp", matchers...) - return &ImmutableExecutionContext_GetCreationTimestamp{Call: c} + c_call := _m.On("GetCreationTimestamp", matchers...) + return &ImmutableExecutionContext_GetCreationTimestamp{Call: c_call} } // GetCreationTimestamp provides a mock function with given fields: @@ -94,13 +94,13 @@ func (_m ImmutableExecutionContext_GetEventVersion) Return(_a0 v1alpha1.EventVer } func (_m *ImmutableExecutionContext) OnGetEventVersion() *ImmutableExecutionContext_GetEventVersion { - c := _m.On("GetEventVersion") - return &ImmutableExecutionContext_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion") + return &ImmutableExecutionContext_GetEventVersion{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetEventVersionMatch(matchers ...interface{}) *ImmutableExecutionContext_GetEventVersion { - c := _m.On("GetEventVersion", matchers...) - return &ImmutableExecutionContext_GetEventVersion{Call: c} + c_call := _m.On("GetEventVersion", matchers...) + return &ImmutableExecutionContext_GetEventVersion{Call: c_call} } // GetEventVersion provides a mock function with given fields: @@ -126,13 +126,13 @@ func (_m ImmutableExecutionContext_GetExecutionConfig) Return(_a0 v1alpha1.Execu } func (_m *ImmutableExecutionContext) OnGetExecutionConfig() *ImmutableExecutionContext_GetExecutionConfig { - c := _m.On("GetExecutionConfig") - return &ImmutableExecutionContext_GetExecutionConfig{Call: c} + c_call := _m.On("GetExecutionConfig") + return &ImmutableExecutionContext_GetExecutionConfig{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetExecutionConfigMatch(matchers ...interface{}) *ImmutableExecutionContext_GetExecutionConfig { - c := _m.On("GetExecutionConfig", matchers...) - return &ImmutableExecutionContext_GetExecutionConfig{Call: c} + c_call := _m.On("GetExecutionConfig", matchers...) + return &ImmutableExecutionContext_GetExecutionConfig{Call: c_call} } // GetExecutionConfig provides a mock function with given fields: @@ -158,13 +158,13 @@ func (_m ImmutableExecutionContext_GetExecutionID) Return(_a0 v1alpha1.WorkflowE } func (_m *ImmutableExecutionContext) OnGetExecutionID() *ImmutableExecutionContext_GetExecutionID { - c := _m.On("GetExecutionID") - return &ImmutableExecutionContext_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID") + return &ImmutableExecutionContext_GetExecutionID{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetExecutionIDMatch(matchers ...interface{}) *ImmutableExecutionContext_GetExecutionID { - c := _m.On("GetExecutionID", matchers...) - return &ImmutableExecutionContext_GetExecutionID{Call: c} + c_call := _m.On("GetExecutionID", matchers...) + return &ImmutableExecutionContext_GetExecutionID{Call: c_call} } // GetExecutionID provides a mock function with given fields: @@ -190,13 +190,13 @@ func (_m ImmutableExecutionContext_GetID) Return(_a0 string) *ImmutableExecution } func (_m *ImmutableExecutionContext) OnGetID() *ImmutableExecutionContext_GetID { - c := _m.On("GetID") - return &ImmutableExecutionContext_GetID{Call: c} + c_call := _m.On("GetID") + return &ImmutableExecutionContext_GetID{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetIDMatch(matchers ...interface{}) *ImmutableExecutionContext_GetID { - c := _m.On("GetID", matchers...) - return &ImmutableExecutionContext_GetID{Call: c} + c_call := _m.On("GetID", matchers...) + return &ImmutableExecutionContext_GetID{Call: c_call} } // GetID provides a mock function with given fields: @@ -222,13 +222,13 @@ func (_m ImmutableExecutionContext_GetK8sWorkflowID) Return(_a0 types.Namespaced } func (_m *ImmutableExecutionContext) OnGetK8sWorkflowID() *ImmutableExecutionContext_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID") - return &ImmutableExecutionContext_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID") + return &ImmutableExecutionContext_GetK8sWorkflowID{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetK8sWorkflowIDMatch(matchers ...interface{}) *ImmutableExecutionContext_GetK8sWorkflowID { - c := _m.On("GetK8sWorkflowID", matchers...) - return &ImmutableExecutionContext_GetK8sWorkflowID{Call: c} + c_call := _m.On("GetK8sWorkflowID", matchers...) + return &ImmutableExecutionContext_GetK8sWorkflowID{Call: c_call} } // GetK8sWorkflowID provides a mock function with given fields: @@ -254,13 +254,13 @@ func (_m ImmutableExecutionContext_GetLabels) Return(_a0 map[string]string) *Imm } func (_m *ImmutableExecutionContext) OnGetLabels() *ImmutableExecutionContext_GetLabels { - c := _m.On("GetLabels") - return &ImmutableExecutionContext_GetLabels{Call: c} + c_call := _m.On("GetLabels") + return &ImmutableExecutionContext_GetLabels{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetLabelsMatch(matchers ...interface{}) *ImmutableExecutionContext_GetLabels { - c := _m.On("GetLabels", matchers...) - return &ImmutableExecutionContext_GetLabels{Call: c} + c_call := _m.On("GetLabels", matchers...) + return &ImmutableExecutionContext_GetLabels{Call: c_call} } // GetLabels provides a mock function with given fields: @@ -288,13 +288,13 @@ func (_m ImmutableExecutionContext_GetName) Return(_a0 string) *ImmutableExecuti } func (_m *ImmutableExecutionContext) OnGetName() *ImmutableExecutionContext_GetName { - c := _m.On("GetName") - return &ImmutableExecutionContext_GetName{Call: c} + c_call := _m.On("GetName") + return &ImmutableExecutionContext_GetName{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetNameMatch(matchers ...interface{}) *ImmutableExecutionContext_GetName { - c := _m.On("GetName", matchers...) - return &ImmutableExecutionContext_GetName{Call: c} + c_call := _m.On("GetName", matchers...) + return &ImmutableExecutionContext_GetName{Call: c_call} } // GetName provides a mock function with given fields: @@ -320,13 +320,13 @@ func (_m ImmutableExecutionContext_GetNamespace) Return(_a0 string) *ImmutableEx } func (_m *ImmutableExecutionContext) OnGetNamespace() *ImmutableExecutionContext_GetNamespace { - c := _m.On("GetNamespace") - return &ImmutableExecutionContext_GetNamespace{Call: c} + c_call := _m.On("GetNamespace") + return &ImmutableExecutionContext_GetNamespace{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetNamespaceMatch(matchers ...interface{}) *ImmutableExecutionContext_GetNamespace { - c := _m.On("GetNamespace", matchers...) - return &ImmutableExecutionContext_GetNamespace{Call: c} + c_call := _m.On("GetNamespace", matchers...) + return &ImmutableExecutionContext_GetNamespace{Call: c_call} } // GetNamespace provides a mock function with given fields: @@ -352,13 +352,13 @@ func (_m ImmutableExecutionContext_GetOnFailurePolicy) Return(_a0 v1alpha1.Workf } func (_m *ImmutableExecutionContext) OnGetOnFailurePolicy() *ImmutableExecutionContext_GetOnFailurePolicy { - c := _m.On("GetOnFailurePolicy") - return &ImmutableExecutionContext_GetOnFailurePolicy{Call: c} + c_call := _m.On("GetOnFailurePolicy") + return &ImmutableExecutionContext_GetOnFailurePolicy{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetOnFailurePolicyMatch(matchers ...interface{}) *ImmutableExecutionContext_GetOnFailurePolicy { - c := _m.On("GetOnFailurePolicy", matchers...) - return &ImmutableExecutionContext_GetOnFailurePolicy{Call: c} + c_call := _m.On("GetOnFailurePolicy", matchers...) + return &ImmutableExecutionContext_GetOnFailurePolicy{Call: c_call} } // GetOnFailurePolicy provides a mock function with given fields: @@ -384,13 +384,13 @@ func (_m ImmutableExecutionContext_GetOwnerReference) Return(_a0 v1.OwnerReferen } func (_m *ImmutableExecutionContext) OnGetOwnerReference() *ImmutableExecutionContext_GetOwnerReference { - c := _m.On("GetOwnerReference") - return &ImmutableExecutionContext_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference") + return &ImmutableExecutionContext_GetOwnerReference{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetOwnerReferenceMatch(matchers ...interface{}) *ImmutableExecutionContext_GetOwnerReference { - c := _m.On("GetOwnerReference", matchers...) - return &ImmutableExecutionContext_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference", matchers...) + return &ImmutableExecutionContext_GetOwnerReference{Call: c_call} } // GetOwnerReference provides a mock function with given fields: @@ -416,13 +416,13 @@ func (_m ImmutableExecutionContext_GetRawOutputDataConfig) Return(_a0 v1alpha1.R } func (_m *ImmutableExecutionContext) OnGetRawOutputDataConfig() *ImmutableExecutionContext_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig") - return &ImmutableExecutionContext_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig") + return &ImmutableExecutionContext_GetRawOutputDataConfig{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetRawOutputDataConfigMatch(matchers ...interface{}) *ImmutableExecutionContext_GetRawOutputDataConfig { - c := _m.On("GetRawOutputDataConfig", matchers...) - return &ImmutableExecutionContext_GetRawOutputDataConfig{Call: c} + c_call := _m.On("GetRawOutputDataConfig", matchers...) + return &ImmutableExecutionContext_GetRawOutputDataConfig{Call: c_call} } // GetRawOutputDataConfig provides a mock function with given fields: @@ -448,13 +448,13 @@ func (_m ImmutableExecutionContext_GetSecurityContext) Return(_a0 core.SecurityC } func (_m *ImmutableExecutionContext) OnGetSecurityContext() *ImmutableExecutionContext_GetSecurityContext { - c := _m.On("GetSecurityContext") - return &ImmutableExecutionContext_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext") + return &ImmutableExecutionContext_GetSecurityContext{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetSecurityContextMatch(matchers ...interface{}) *ImmutableExecutionContext_GetSecurityContext { - c := _m.On("GetSecurityContext", matchers...) - return &ImmutableExecutionContext_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext", matchers...) + return &ImmutableExecutionContext_GetSecurityContext{Call: c_call} } // GetSecurityContext provides a mock function with given fields: @@ -480,13 +480,13 @@ func (_m ImmutableExecutionContext_GetServiceAccountName) Return(_a0 string) *Im } func (_m *ImmutableExecutionContext) OnGetServiceAccountName() *ImmutableExecutionContext_GetServiceAccountName { - c := _m.On("GetServiceAccountName") - return &ImmutableExecutionContext_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName") + return &ImmutableExecutionContext_GetServiceAccountName{Call: c_call} } func (_m *ImmutableExecutionContext) OnGetServiceAccountNameMatch(matchers ...interface{}) *ImmutableExecutionContext_GetServiceAccountName { - c := _m.On("GetServiceAccountName", matchers...) - return &ImmutableExecutionContext_GetServiceAccountName{Call: c} + c_call := _m.On("GetServiceAccountName", matchers...) + return &ImmutableExecutionContext_GetServiceAccountName{Call: c_call} } // GetServiceAccountName provides a mock function with given fields: @@ -512,13 +512,13 @@ func (_m ImmutableExecutionContext_IsInterruptible) Return(_a0 bool) *ImmutableE } func (_m *ImmutableExecutionContext) OnIsInterruptible() *ImmutableExecutionContext_IsInterruptible { - c := _m.On("IsInterruptible") - return &ImmutableExecutionContext_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible") + return &ImmutableExecutionContext_IsInterruptible{Call: c_call} } func (_m *ImmutableExecutionContext) OnIsInterruptibleMatch(matchers ...interface{}) *ImmutableExecutionContext_IsInterruptible { - c := _m.On("IsInterruptible", matchers...) - return &ImmutableExecutionContext_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible", matchers...) + return &ImmutableExecutionContext_IsInterruptible{Call: c_call} } // IsInterruptible provides a mock function with given fields: diff --git a/pkg/controller/executors/mocks/immutable_parent_info.go b/pkg/controller/executors/mocks/immutable_parent_info.go index 6563b4cadc..209a0ee10f 100644 --- a/pkg/controller/executors/mocks/immutable_parent_info.go +++ b/pkg/controller/executors/mocks/immutable_parent_info.go @@ -18,13 +18,13 @@ func (_m ImmutableParentInfo_CurrentAttempt) Return(_a0 uint32) *ImmutableParent } func (_m *ImmutableParentInfo) OnCurrentAttempt() *ImmutableParentInfo_CurrentAttempt { - c := _m.On("CurrentAttempt") - return &ImmutableParentInfo_CurrentAttempt{Call: c} + c_call := _m.On("CurrentAttempt") + return &ImmutableParentInfo_CurrentAttempt{Call: c_call} } func (_m *ImmutableParentInfo) OnCurrentAttemptMatch(matchers ...interface{}) *ImmutableParentInfo_CurrentAttempt { - c := _m.On("CurrentAttempt", matchers...) - return &ImmutableParentInfo_CurrentAttempt{Call: c} + c_call := _m.On("CurrentAttempt", matchers...) + return &ImmutableParentInfo_CurrentAttempt{Call: c_call} } // CurrentAttempt provides a mock function with given fields: @@ -50,13 +50,13 @@ func (_m ImmutableParentInfo_GetUniqueID) Return(_a0 string) *ImmutableParentInf } func (_m *ImmutableParentInfo) OnGetUniqueID() *ImmutableParentInfo_GetUniqueID { - c := _m.On("GetUniqueID") - return &ImmutableParentInfo_GetUniqueID{Call: c} + c_call := _m.On("GetUniqueID") + return &ImmutableParentInfo_GetUniqueID{Call: c_call} } func (_m *ImmutableParentInfo) OnGetUniqueIDMatch(matchers ...interface{}) *ImmutableParentInfo_GetUniqueID { - c := _m.On("GetUniqueID", matchers...) - return &ImmutableParentInfo_GetUniqueID{Call: c} + c_call := _m.On("GetUniqueID", matchers...) + return &ImmutableParentInfo_GetUniqueID{Call: c_call} } // GetUniqueID provides a mock function with given fields: diff --git a/pkg/controller/executors/mocks/node.go b/pkg/controller/executors/mocks/node.go index f562ce056d..8f2d5cf0c5 100644 --- a/pkg/controller/executors/mocks/node.go +++ b/pkg/controller/executors/mocks/node.go @@ -27,13 +27,13 @@ func (_m Node_AbortHandler) Return(_a0 error) *Node_AbortHandler { } func (_m *Node) OnAbortHandler(ctx context.Context, execContext executors.ExecutionContext, dag executors.DAGStructure, nl executors.NodeLookup, currentNode v1alpha1.ExecutableNode, reason string) *Node_AbortHandler { - c := _m.On("AbortHandler", ctx, execContext, dag, nl, currentNode, reason) - return &Node_AbortHandler{Call: c} + c_call := _m.On("AbortHandler", ctx, execContext, dag, nl, currentNode, reason) + return &Node_AbortHandler{Call: c_call} } func (_m *Node) OnAbortHandlerMatch(matchers ...interface{}) *Node_AbortHandler { - c := _m.On("AbortHandler", matchers...) - return &Node_AbortHandler{Call: c} + c_call := _m.On("AbortHandler", matchers...) + return &Node_AbortHandler{Call: c_call} } // AbortHandler provides a mock function with given fields: ctx, execContext, dag, nl, currentNode, reason @@ -59,13 +59,13 @@ func (_m Node_FinalizeHandler) Return(_a0 error) *Node_FinalizeHandler { } func (_m *Node) OnFinalizeHandler(ctx context.Context, execContext executors.ExecutionContext, dag executors.DAGStructure, nl executors.NodeLookup, currentNode v1alpha1.ExecutableNode) *Node_FinalizeHandler { - c := _m.On("FinalizeHandler", ctx, execContext, dag, nl, currentNode) - return &Node_FinalizeHandler{Call: c} + c_call := _m.On("FinalizeHandler", ctx, execContext, dag, nl, currentNode) + return &Node_FinalizeHandler{Call: c_call} } func (_m *Node) OnFinalizeHandlerMatch(matchers ...interface{}) *Node_FinalizeHandler { - c := _m.On("FinalizeHandler", matchers...) - return &Node_FinalizeHandler{Call: c} + c_call := _m.On("FinalizeHandler", matchers...) + return &Node_FinalizeHandler{Call: c_call} } // FinalizeHandler provides a mock function with given fields: ctx, execContext, dag, nl, currentNode @@ -91,13 +91,13 @@ func (_m Node_Initialize) Return(_a0 error) *Node_Initialize { } func (_m *Node) OnInitialize(ctx context.Context) *Node_Initialize { - c := _m.On("Initialize", ctx) - return &Node_Initialize{Call: c} + c_call := _m.On("Initialize", ctx) + return &Node_Initialize{Call: c_call} } func (_m *Node) OnInitializeMatch(matchers ...interface{}) *Node_Initialize { - c := _m.On("Initialize", matchers...) - return &Node_Initialize{Call: c} + c_call := _m.On("Initialize", matchers...) + return &Node_Initialize{Call: c_call} } // Initialize provides a mock function with given fields: ctx @@ -123,13 +123,13 @@ func (_m Node_RecursiveNodeHandler) Return(_a0 executors.NodeStatus, _a1 error) } func (_m *Node) OnRecursiveNodeHandler(ctx context.Context, execContext executors.ExecutionContext, dag executors.DAGStructure, nl executors.NodeLookup, currentNode v1alpha1.ExecutableNode) *Node_RecursiveNodeHandler { - c := _m.On("RecursiveNodeHandler", ctx, execContext, dag, nl, currentNode) - return &Node_RecursiveNodeHandler{Call: c} + c_call := _m.On("RecursiveNodeHandler", ctx, execContext, dag, nl, currentNode) + return &Node_RecursiveNodeHandler{Call: c_call} } func (_m *Node) OnRecursiveNodeHandlerMatch(matchers ...interface{}) *Node_RecursiveNodeHandler { - c := _m.On("RecursiveNodeHandler", matchers...) - return &Node_RecursiveNodeHandler{Call: c} + c_call := _m.On("RecursiveNodeHandler", matchers...) + return &Node_RecursiveNodeHandler{Call: c_call} } // RecursiveNodeHandler provides a mock function with given fields: ctx, execContext, dag, nl, currentNode @@ -162,13 +162,13 @@ func (_m Node_SetInputsForStartNode) Return(_a0 executors.NodeStatus, _a1 error) } func (_m *Node) OnSetInputsForStartNode(ctx context.Context, execContext executors.ExecutionContext, dag executors.DAGStructureWithStartNode, nl executors.NodeLookup, inputs *core.LiteralMap) *Node_SetInputsForStartNode { - c := _m.On("SetInputsForStartNode", ctx, execContext, dag, nl, inputs) - return &Node_SetInputsForStartNode{Call: c} + c_call := _m.On("SetInputsForStartNode", ctx, execContext, dag, nl, inputs) + return &Node_SetInputsForStartNode{Call: c_call} } func (_m *Node) OnSetInputsForStartNodeMatch(matchers ...interface{}) *Node_SetInputsForStartNode { - c := _m.On("SetInputsForStartNode", matchers...) - return &Node_SetInputsForStartNode{Call: c} + c_call := _m.On("SetInputsForStartNode", matchers...) + return &Node_SetInputsForStartNode{Call: c_call} } // SetInputsForStartNode provides a mock function with given fields: ctx, execContext, dag, nl, inputs diff --git a/pkg/controller/executors/mocks/node_lookup.go b/pkg/controller/executors/mocks/node_lookup.go index f60e197e69..036a0400d9 100644 --- a/pkg/controller/executors/mocks/node_lookup.go +++ b/pkg/controller/executors/mocks/node_lookup.go @@ -24,13 +24,13 @@ func (_m NodeLookup_GetNode) Return(_a0 v1alpha1.ExecutableNode, _a1 bool) *Node } func (_m *NodeLookup) OnGetNode(nodeID string) *NodeLookup_GetNode { - c := _m.On("GetNode", nodeID) - return &NodeLookup_GetNode{Call: c} + c_call := _m.On("GetNode", nodeID) + return &NodeLookup_GetNode{Call: c_call} } func (_m *NodeLookup) OnGetNodeMatch(matchers ...interface{}) *NodeLookup_GetNode { - c := _m.On("GetNode", matchers...) - return &NodeLookup_GetNode{Call: c} + c_call := _m.On("GetNode", matchers...) + return &NodeLookup_GetNode{Call: c_call} } // GetNode provides a mock function with given fields: nodeID @@ -65,13 +65,13 @@ func (_m NodeLookup_GetNodeExecutionStatus) Return(_a0 v1alpha1.ExecutableNodeSt } func (_m *NodeLookup) OnGetNodeExecutionStatus(ctx context.Context, id string) *NodeLookup_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", ctx, id) - return &NodeLookup_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", ctx, id) + return &NodeLookup_GetNodeExecutionStatus{Call: c_call} } func (_m *NodeLookup) OnGetNodeExecutionStatusMatch(matchers ...interface{}) *NodeLookup_GetNodeExecutionStatus { - c := _m.On("GetNodeExecutionStatus", matchers...) - return &NodeLookup_GetNodeExecutionStatus{Call: c} + c_call := _m.On("GetNodeExecutionStatus", matchers...) + return &NodeLookup_GetNodeExecutionStatus{Call: c_call} } // GetNodeExecutionStatus provides a mock function with given fields: ctx, id diff --git a/pkg/controller/executors/mocks/parent_info_getter.go b/pkg/controller/executors/mocks/parent_info_getter.go index f6adb15b9e..f845cf5082 100644 --- a/pkg/controller/executors/mocks/parent_info_getter.go +++ b/pkg/controller/executors/mocks/parent_info_getter.go @@ -21,13 +21,13 @@ func (_m ParentInfoGetter_GetParentInfo) Return(_a0 executors.ImmutableParentInf } func (_m *ParentInfoGetter) OnGetParentInfo() *ParentInfoGetter_GetParentInfo { - c := _m.On("GetParentInfo") - return &ParentInfoGetter_GetParentInfo{Call: c} + c_call := _m.On("GetParentInfo") + return &ParentInfoGetter_GetParentInfo{Call: c_call} } func (_m *ParentInfoGetter) OnGetParentInfoMatch(matchers ...interface{}) *ParentInfoGetter_GetParentInfo { - c := _m.On("GetParentInfo", matchers...) - return &ParentInfoGetter_GetParentInfo{Call: c} + c_call := _m.On("GetParentInfo", matchers...) + return &ParentInfoGetter_GetParentInfo{Call: c_call} } // GetParentInfo provides a mock function with given fields: diff --git a/pkg/controller/executors/mocks/sub_workflow_getter.go b/pkg/controller/executors/mocks/sub_workflow_getter.go index 913e0e5ce3..dce6fe2099 100644 --- a/pkg/controller/executors/mocks/sub_workflow_getter.go +++ b/pkg/controller/executors/mocks/sub_workflow_getter.go @@ -21,13 +21,13 @@ func (_m SubWorkflowGetter_FindSubWorkflow) Return(_a0 v1alpha1.ExecutableSubWor } func (_m *SubWorkflowGetter) OnFindSubWorkflow(subID string) *SubWorkflowGetter_FindSubWorkflow { - c := _m.On("FindSubWorkflow", subID) - return &SubWorkflowGetter_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", subID) + return &SubWorkflowGetter_FindSubWorkflow{Call: c_call} } func (_m *SubWorkflowGetter) OnFindSubWorkflowMatch(matchers ...interface{}) *SubWorkflowGetter_FindSubWorkflow { - c := _m.On("FindSubWorkflow", matchers...) - return &SubWorkflowGetter_FindSubWorkflow{Call: c} + c_call := _m.On("FindSubWorkflow", matchers...) + return &SubWorkflowGetter_FindSubWorkflow{Call: c_call} } // FindSubWorkflow provides a mock function with given fields: subID diff --git a/pkg/controller/executors/mocks/task_details_getter.go b/pkg/controller/executors/mocks/task_details_getter.go index 8cc65642b2..70c1c1b558 100644 --- a/pkg/controller/executors/mocks/task_details_getter.go +++ b/pkg/controller/executors/mocks/task_details_getter.go @@ -21,13 +21,13 @@ func (_m TaskDetailsGetter_GetTask) Return(_a0 v1alpha1.ExecutableTask, _a1 erro } func (_m *TaskDetailsGetter) OnGetTask(id string) *TaskDetailsGetter_GetTask { - c := _m.On("GetTask", id) - return &TaskDetailsGetter_GetTask{Call: c} + c_call := _m.On("GetTask", id) + return &TaskDetailsGetter_GetTask{Call: c_call} } func (_m *TaskDetailsGetter) OnGetTaskMatch(matchers ...interface{}) *TaskDetailsGetter_GetTask { - c := _m.On("GetTask", matchers...) - return &TaskDetailsGetter_GetTask{Call: c} + c_call := _m.On("GetTask", matchers...) + return &TaskDetailsGetter_GetTask{Call: c_call} } // GetTask provides a mock function with given fields: id diff --git a/pkg/controller/executors/mocks/workflow.go b/pkg/controller/executors/mocks/workflow.go index 725dd7d90a..227f529100 100644 --- a/pkg/controller/executors/mocks/workflow.go +++ b/pkg/controller/executors/mocks/workflow.go @@ -24,13 +24,13 @@ func (_m Workflow_HandleAbortedWorkflow) Return(_a0 error) *Workflow_HandleAbort } func (_m *Workflow) OnHandleAbortedWorkflow(ctx context.Context, w *v1alpha1.FlyteWorkflow, maxRetries uint32) *Workflow_HandleAbortedWorkflow { - c := _m.On("HandleAbortedWorkflow", ctx, w, maxRetries) - return &Workflow_HandleAbortedWorkflow{Call: c} + c_call := _m.On("HandleAbortedWorkflow", ctx, w, maxRetries) + return &Workflow_HandleAbortedWorkflow{Call: c_call} } func (_m *Workflow) OnHandleAbortedWorkflowMatch(matchers ...interface{}) *Workflow_HandleAbortedWorkflow { - c := _m.On("HandleAbortedWorkflow", matchers...) - return &Workflow_HandleAbortedWorkflow{Call: c} + c_call := _m.On("HandleAbortedWorkflow", matchers...) + return &Workflow_HandleAbortedWorkflow{Call: c_call} } // HandleAbortedWorkflow provides a mock function with given fields: ctx, w, maxRetries @@ -56,13 +56,13 @@ func (_m Workflow_HandleFlyteWorkflow) Return(_a0 error) *Workflow_HandleFlyteWo } func (_m *Workflow) OnHandleFlyteWorkflow(ctx context.Context, w *v1alpha1.FlyteWorkflow) *Workflow_HandleFlyteWorkflow { - c := _m.On("HandleFlyteWorkflow", ctx, w) - return &Workflow_HandleFlyteWorkflow{Call: c} + c_call := _m.On("HandleFlyteWorkflow", ctx, w) + return &Workflow_HandleFlyteWorkflow{Call: c_call} } func (_m *Workflow) OnHandleFlyteWorkflowMatch(matchers ...interface{}) *Workflow_HandleFlyteWorkflow { - c := _m.On("HandleFlyteWorkflow", matchers...) - return &Workflow_HandleFlyteWorkflow{Call: c} + c_call := _m.On("HandleFlyteWorkflow", matchers...) + return &Workflow_HandleFlyteWorkflow{Call: c_call} } // HandleFlyteWorkflow provides a mock function with given fields: ctx, w @@ -88,13 +88,13 @@ func (_m Workflow_Initialize) Return(_a0 error) *Workflow_Initialize { } func (_m *Workflow) OnInitialize(ctx context.Context) *Workflow_Initialize { - c := _m.On("Initialize", ctx) - return &Workflow_Initialize{Call: c} + c_call := _m.On("Initialize", ctx) + return &Workflow_Initialize{Call: c_call} } func (_m *Workflow) OnInitializeMatch(matchers ...interface{}) *Workflow_Initialize { - c := _m.On("Initialize", matchers...) - return &Workflow_Initialize{Call: c} + c_call := _m.On("Initialize", matchers...) + return &Workflow_Initialize{Call: c_call} } // Initialize provides a mock function with given fields: ctx diff --git a/pkg/controller/nodes/dynamic/mocks/task_node_handler.go b/pkg/controller/nodes/dynamic/mocks/task_node_handler.go index 98a4e0a971..49936c11d3 100644 --- a/pkg/controller/nodes/dynamic/mocks/task_node_handler.go +++ b/pkg/controller/nodes/dynamic/mocks/task_node_handler.go @@ -32,13 +32,13 @@ func (_m TaskNodeHandler_Abort) Return(_a0 error) *TaskNodeHandler_Abort { } func (_m *TaskNodeHandler) OnAbort(ctx context.Context, executionContext handler.NodeExecutionContext, reason string) *TaskNodeHandler_Abort { - c := _m.On("Abort", ctx, executionContext, reason) - return &TaskNodeHandler_Abort{Call: c} + c_call := _m.On("Abort", ctx, executionContext, reason) + return &TaskNodeHandler_Abort{Call: c_call} } func (_m *TaskNodeHandler) OnAbortMatch(matchers ...interface{}) *TaskNodeHandler_Abort { - c := _m.On("Abort", matchers...) - return &TaskNodeHandler_Abort{Call: c} + c_call := _m.On("Abort", matchers...) + return &TaskNodeHandler_Abort{Call: c_call} } // Abort provides a mock function with given fields: ctx, executionContext, reason @@ -64,13 +64,13 @@ func (_m TaskNodeHandler_Finalize) Return(_a0 error) *TaskNodeHandler_Finalize { } func (_m *TaskNodeHandler) OnFinalize(ctx context.Context, executionContext handler.NodeExecutionContext) *TaskNodeHandler_Finalize { - c := _m.On("Finalize", ctx, executionContext) - return &TaskNodeHandler_Finalize{Call: c} + c_call := _m.On("Finalize", ctx, executionContext) + return &TaskNodeHandler_Finalize{Call: c_call} } func (_m *TaskNodeHandler) OnFinalizeMatch(matchers ...interface{}) *TaskNodeHandler_Finalize { - c := _m.On("Finalize", matchers...) - return &TaskNodeHandler_Finalize{Call: c} + c_call := _m.On("Finalize", matchers...) + return &TaskNodeHandler_Finalize{Call: c_call} } // Finalize provides a mock function with given fields: ctx, executionContext @@ -96,13 +96,13 @@ func (_m TaskNodeHandler_FinalizeRequired) Return(_a0 bool) *TaskNodeHandler_Fin } func (_m *TaskNodeHandler) OnFinalizeRequired() *TaskNodeHandler_FinalizeRequired { - c := _m.On("FinalizeRequired") - return &TaskNodeHandler_FinalizeRequired{Call: c} + c_call := _m.On("FinalizeRequired") + return &TaskNodeHandler_FinalizeRequired{Call: c_call} } func (_m *TaskNodeHandler) OnFinalizeRequiredMatch(matchers ...interface{}) *TaskNodeHandler_FinalizeRequired { - c := _m.On("FinalizeRequired", matchers...) - return &TaskNodeHandler_FinalizeRequired{Call: c} + c_call := _m.On("FinalizeRequired", matchers...) + return &TaskNodeHandler_FinalizeRequired{Call: c_call} } // FinalizeRequired provides a mock function with given fields: @@ -128,13 +128,13 @@ func (_m TaskNodeHandler_Handle) Return(_a0 handler.Transition, _a1 error) *Task } func (_m *TaskNodeHandler) OnHandle(ctx context.Context, executionContext handler.NodeExecutionContext) *TaskNodeHandler_Handle { - c := _m.On("Handle", ctx, executionContext) - return &TaskNodeHandler_Handle{Call: c} + c_call := _m.On("Handle", ctx, executionContext) + return &TaskNodeHandler_Handle{Call: c_call} } func (_m *TaskNodeHandler) OnHandleMatch(matchers ...interface{}) *TaskNodeHandler_Handle { - c := _m.On("Handle", matchers...) - return &TaskNodeHandler_Handle{Call: c} + c_call := _m.On("Handle", matchers...) + return &TaskNodeHandler_Handle{Call: c_call} } // Handle provides a mock function with given fields: ctx, executionContext @@ -167,13 +167,13 @@ func (_m TaskNodeHandler_Setup) Return(_a0 error) *TaskNodeHandler_Setup { } func (_m *TaskNodeHandler) OnSetup(ctx context.Context, setupContext handler.SetupContext) *TaskNodeHandler_Setup { - c := _m.On("Setup", ctx, setupContext) - return &TaskNodeHandler_Setup{Call: c} + c_call := _m.On("Setup", ctx, setupContext) + return &TaskNodeHandler_Setup{Call: c_call} } func (_m *TaskNodeHandler) OnSetupMatch(matchers ...interface{}) *TaskNodeHandler_Setup { - c := _m.On("Setup", matchers...) - return &TaskNodeHandler_Setup{Call: c} + c_call := _m.On("Setup", matchers...) + return &TaskNodeHandler_Setup{Call: c_call} } // Setup provides a mock function with given fields: ctx, setupContext @@ -199,13 +199,13 @@ func (_m TaskNodeHandler_ValidateOutputAndCacheAdd) Return(_a0 catalog.Status, _ } func (_m *TaskNodeHandler) OnValidateOutputAndCacheAdd(ctx context.Context, nodeID string, i io.InputReader, r io.OutputReader, outputCommitter io.OutputWriter, executionConfig v1alpha1.ExecutionConfig, tr ioutils.SimpleTaskReader, m catalog.Metadata) *TaskNodeHandler_ValidateOutputAndCacheAdd { - c := _m.On("ValidateOutputAndCacheAdd", ctx, nodeID, i, r, outputCommitter, executionConfig, tr, m) - return &TaskNodeHandler_ValidateOutputAndCacheAdd{Call: c} + c_call := _m.On("ValidateOutputAndCacheAdd", ctx, nodeID, i, r, outputCommitter, executionConfig, tr, m) + return &TaskNodeHandler_ValidateOutputAndCacheAdd{Call: c_call} } func (_m *TaskNodeHandler) OnValidateOutputAndCacheAddMatch(matchers ...interface{}) *TaskNodeHandler_ValidateOutputAndCacheAdd { - c := _m.On("ValidateOutputAndCacheAdd", matchers...) - return &TaskNodeHandler_ValidateOutputAndCacheAdd{Call: c} + c_call := _m.On("ValidateOutputAndCacheAdd", matchers...) + return &TaskNodeHandler_ValidateOutputAndCacheAdd{Call: c_call} } // ValidateOutputAndCacheAdd provides a mock function with given fields: ctx, nodeID, i, r, outputCommitter, executionConfig, tr, m diff --git a/pkg/controller/nodes/handler/mocks/node.go b/pkg/controller/nodes/handler/mocks/node.go index 709358abd4..e7e376606a 100644 --- a/pkg/controller/nodes/handler/mocks/node.go +++ b/pkg/controller/nodes/handler/mocks/node.go @@ -23,13 +23,13 @@ func (_m Node_Abort) Return(_a0 error) *Node_Abort { } func (_m *Node) OnAbort(ctx context.Context, executionContext handler.NodeExecutionContext, reason string) *Node_Abort { - c := _m.On("Abort", ctx, executionContext, reason) - return &Node_Abort{Call: c} + c_call := _m.On("Abort", ctx, executionContext, reason) + return &Node_Abort{Call: c_call} } func (_m *Node) OnAbortMatch(matchers ...interface{}) *Node_Abort { - c := _m.On("Abort", matchers...) - return &Node_Abort{Call: c} + c_call := _m.On("Abort", matchers...) + return &Node_Abort{Call: c_call} } // Abort provides a mock function with given fields: ctx, executionContext, reason @@ -55,13 +55,13 @@ func (_m Node_Finalize) Return(_a0 error) *Node_Finalize { } func (_m *Node) OnFinalize(ctx context.Context, executionContext handler.NodeExecutionContext) *Node_Finalize { - c := _m.On("Finalize", ctx, executionContext) - return &Node_Finalize{Call: c} + c_call := _m.On("Finalize", ctx, executionContext) + return &Node_Finalize{Call: c_call} } func (_m *Node) OnFinalizeMatch(matchers ...interface{}) *Node_Finalize { - c := _m.On("Finalize", matchers...) - return &Node_Finalize{Call: c} + c_call := _m.On("Finalize", matchers...) + return &Node_Finalize{Call: c_call} } // Finalize provides a mock function with given fields: ctx, executionContext @@ -87,13 +87,13 @@ func (_m Node_FinalizeRequired) Return(_a0 bool) *Node_FinalizeRequired { } func (_m *Node) OnFinalizeRequired() *Node_FinalizeRequired { - c := _m.On("FinalizeRequired") - return &Node_FinalizeRequired{Call: c} + c_call := _m.On("FinalizeRequired") + return &Node_FinalizeRequired{Call: c_call} } func (_m *Node) OnFinalizeRequiredMatch(matchers ...interface{}) *Node_FinalizeRequired { - c := _m.On("FinalizeRequired", matchers...) - return &Node_FinalizeRequired{Call: c} + c_call := _m.On("FinalizeRequired", matchers...) + return &Node_FinalizeRequired{Call: c_call} } // FinalizeRequired provides a mock function with given fields: @@ -119,13 +119,13 @@ func (_m Node_Handle) Return(_a0 handler.Transition, _a1 error) *Node_Handle { } func (_m *Node) OnHandle(ctx context.Context, executionContext handler.NodeExecutionContext) *Node_Handle { - c := _m.On("Handle", ctx, executionContext) - return &Node_Handle{Call: c} + c_call := _m.On("Handle", ctx, executionContext) + return &Node_Handle{Call: c_call} } func (_m *Node) OnHandleMatch(matchers ...interface{}) *Node_Handle { - c := _m.On("Handle", matchers...) - return &Node_Handle{Call: c} + c_call := _m.On("Handle", matchers...) + return &Node_Handle{Call: c_call} } // Handle provides a mock function with given fields: ctx, executionContext @@ -158,13 +158,13 @@ func (_m Node_Setup) Return(_a0 error) *Node_Setup { } func (_m *Node) OnSetup(ctx context.Context, setupContext handler.SetupContext) *Node_Setup { - c := _m.On("Setup", ctx, setupContext) - return &Node_Setup{Call: c} + c_call := _m.On("Setup", ctx, setupContext) + return &Node_Setup{Call: c_call} } func (_m *Node) OnSetupMatch(matchers ...interface{}) *Node_Setup { - c := _m.On("Setup", matchers...) - return &Node_Setup{Call: c} + c_call := _m.On("Setup", matchers...) + return &Node_Setup{Call: c_call} } // Setup provides a mock function with given fields: ctx, setupContext diff --git a/pkg/controller/nodes/handler/mocks/node_execution_context.go b/pkg/controller/nodes/handler/mocks/node_execution_context.go index aaedf7c56f..434f78caa4 100644 --- a/pkg/controller/nodes/handler/mocks/node_execution_context.go +++ b/pkg/controller/nodes/handler/mocks/node_execution_context.go @@ -32,13 +32,13 @@ func (_m NodeExecutionContext_ContextualNodeLookup) Return(_a0 executors.NodeLoo } func (_m *NodeExecutionContext) OnContextualNodeLookup() *NodeExecutionContext_ContextualNodeLookup { - c := _m.On("ContextualNodeLookup") - return &NodeExecutionContext_ContextualNodeLookup{Call: c} + c_call := _m.On("ContextualNodeLookup") + return &NodeExecutionContext_ContextualNodeLookup{Call: c_call} } func (_m *NodeExecutionContext) OnContextualNodeLookupMatch(matchers ...interface{}) *NodeExecutionContext_ContextualNodeLookup { - c := _m.On("ContextualNodeLookup", matchers...) - return &NodeExecutionContext_ContextualNodeLookup{Call: c} + c_call := _m.On("ContextualNodeLookup", matchers...) + return &NodeExecutionContext_ContextualNodeLookup{Call: c_call} } // ContextualNodeLookup provides a mock function with given fields: @@ -66,13 +66,13 @@ func (_m NodeExecutionContext_CurrentAttempt) Return(_a0 uint32) *NodeExecutionC } func (_m *NodeExecutionContext) OnCurrentAttempt() *NodeExecutionContext_CurrentAttempt { - c := _m.On("CurrentAttempt") - return &NodeExecutionContext_CurrentAttempt{Call: c} + c_call := _m.On("CurrentAttempt") + return &NodeExecutionContext_CurrentAttempt{Call: c_call} } func (_m *NodeExecutionContext) OnCurrentAttemptMatch(matchers ...interface{}) *NodeExecutionContext_CurrentAttempt { - c := _m.On("CurrentAttempt", matchers...) - return &NodeExecutionContext_CurrentAttempt{Call: c} + c_call := _m.On("CurrentAttempt", matchers...) + return &NodeExecutionContext_CurrentAttempt{Call: c_call} } // CurrentAttempt provides a mock function with given fields: @@ -98,13 +98,13 @@ func (_m NodeExecutionContext_DataStore) Return(_a0 *storage.DataStore) *NodeExe } func (_m *NodeExecutionContext) OnDataStore() *NodeExecutionContext_DataStore { - c := _m.On("DataStore") - return &NodeExecutionContext_DataStore{Call: c} + c_call := _m.On("DataStore") + return &NodeExecutionContext_DataStore{Call: c_call} } func (_m *NodeExecutionContext) OnDataStoreMatch(matchers ...interface{}) *NodeExecutionContext_DataStore { - c := _m.On("DataStore", matchers...) - return &NodeExecutionContext_DataStore{Call: c} + c_call := _m.On("DataStore", matchers...) + return &NodeExecutionContext_DataStore{Call: c_call} } // DataStore provides a mock function with given fields: @@ -132,13 +132,13 @@ func (_m NodeExecutionContext_EnqueueOwnerFunc) Return(_a0 func() error) *NodeEx } func (_m *NodeExecutionContext) OnEnqueueOwnerFunc() *NodeExecutionContext_EnqueueOwnerFunc { - c := _m.On("EnqueueOwnerFunc") - return &NodeExecutionContext_EnqueueOwnerFunc{Call: c} + c_call := _m.On("EnqueueOwnerFunc") + return &NodeExecutionContext_EnqueueOwnerFunc{Call: c_call} } func (_m *NodeExecutionContext) OnEnqueueOwnerFuncMatch(matchers ...interface{}) *NodeExecutionContext_EnqueueOwnerFunc { - c := _m.On("EnqueueOwnerFunc", matchers...) - return &NodeExecutionContext_EnqueueOwnerFunc{Call: c} + c_call := _m.On("EnqueueOwnerFunc", matchers...) + return &NodeExecutionContext_EnqueueOwnerFunc{Call: c_call} } // EnqueueOwnerFunc provides a mock function with given fields: @@ -166,13 +166,13 @@ func (_m NodeExecutionContext_EventsRecorder) Return(_a0 events.TaskEventRecorde } func (_m *NodeExecutionContext) OnEventsRecorder() *NodeExecutionContext_EventsRecorder { - c := _m.On("EventsRecorder") - return &NodeExecutionContext_EventsRecorder{Call: c} + c_call := _m.On("EventsRecorder") + return &NodeExecutionContext_EventsRecorder{Call: c_call} } func (_m *NodeExecutionContext) OnEventsRecorderMatch(matchers ...interface{}) *NodeExecutionContext_EventsRecorder { - c := _m.On("EventsRecorder", matchers...) - return &NodeExecutionContext_EventsRecorder{Call: c} + c_call := _m.On("EventsRecorder", matchers...) + return &NodeExecutionContext_EventsRecorder{Call: c_call} } // EventsRecorder provides a mock function with given fields: @@ -200,13 +200,13 @@ func (_m NodeExecutionContext_ExecutionContext) Return(_a0 executors.ExecutionCo } func (_m *NodeExecutionContext) OnExecutionContext() *NodeExecutionContext_ExecutionContext { - c := _m.On("ExecutionContext") - return &NodeExecutionContext_ExecutionContext{Call: c} + c_call := _m.On("ExecutionContext") + return &NodeExecutionContext_ExecutionContext{Call: c_call} } func (_m *NodeExecutionContext) OnExecutionContextMatch(matchers ...interface{}) *NodeExecutionContext_ExecutionContext { - c := _m.On("ExecutionContext", matchers...) - return &NodeExecutionContext_ExecutionContext{Call: c} + c_call := _m.On("ExecutionContext", matchers...) + return &NodeExecutionContext_ExecutionContext{Call: c_call} } // ExecutionContext provides a mock function with given fields: @@ -234,13 +234,13 @@ func (_m NodeExecutionContext_InputReader) Return(_a0 io.InputReader) *NodeExecu } func (_m *NodeExecutionContext) OnInputReader() *NodeExecutionContext_InputReader { - c := _m.On("InputReader") - return &NodeExecutionContext_InputReader{Call: c} + c_call := _m.On("InputReader") + return &NodeExecutionContext_InputReader{Call: c_call} } func (_m *NodeExecutionContext) OnInputReaderMatch(matchers ...interface{}) *NodeExecutionContext_InputReader { - c := _m.On("InputReader", matchers...) - return &NodeExecutionContext_InputReader{Call: c} + c_call := _m.On("InputReader", matchers...) + return &NodeExecutionContext_InputReader{Call: c_call} } // InputReader provides a mock function with given fields: @@ -268,13 +268,13 @@ func (_m NodeExecutionContext_MaxDatasetSizeBytes) Return(_a0 int64) *NodeExecut } func (_m *NodeExecutionContext) OnMaxDatasetSizeBytes() *NodeExecutionContext_MaxDatasetSizeBytes { - c := _m.On("MaxDatasetSizeBytes") - return &NodeExecutionContext_MaxDatasetSizeBytes{Call: c} + c_call := _m.On("MaxDatasetSizeBytes") + return &NodeExecutionContext_MaxDatasetSizeBytes{Call: c_call} } func (_m *NodeExecutionContext) OnMaxDatasetSizeBytesMatch(matchers ...interface{}) *NodeExecutionContext_MaxDatasetSizeBytes { - c := _m.On("MaxDatasetSizeBytes", matchers...) - return &NodeExecutionContext_MaxDatasetSizeBytes{Call: c} + c_call := _m.On("MaxDatasetSizeBytes", matchers...) + return &NodeExecutionContext_MaxDatasetSizeBytes{Call: c_call} } // MaxDatasetSizeBytes provides a mock function with given fields: @@ -300,13 +300,13 @@ func (_m NodeExecutionContext_Node) Return(_a0 v1alpha1.ExecutableNode) *NodeExe } func (_m *NodeExecutionContext) OnNode() *NodeExecutionContext_Node { - c := _m.On("Node") - return &NodeExecutionContext_Node{Call: c} + c_call := _m.On("Node") + return &NodeExecutionContext_Node{Call: c_call} } func (_m *NodeExecutionContext) OnNodeMatch(matchers ...interface{}) *NodeExecutionContext_Node { - c := _m.On("Node", matchers...) - return &NodeExecutionContext_Node{Call: c} + c_call := _m.On("Node", matchers...) + return &NodeExecutionContext_Node{Call: c_call} } // Node provides a mock function with given fields: @@ -334,13 +334,13 @@ func (_m NodeExecutionContext_NodeExecutionMetadata) Return(_a0 handler.NodeExec } func (_m *NodeExecutionContext) OnNodeExecutionMetadata() *NodeExecutionContext_NodeExecutionMetadata { - c := _m.On("NodeExecutionMetadata") - return &NodeExecutionContext_NodeExecutionMetadata{Call: c} + c_call := _m.On("NodeExecutionMetadata") + return &NodeExecutionContext_NodeExecutionMetadata{Call: c_call} } func (_m *NodeExecutionContext) OnNodeExecutionMetadataMatch(matchers ...interface{}) *NodeExecutionContext_NodeExecutionMetadata { - c := _m.On("NodeExecutionMetadata", matchers...) - return &NodeExecutionContext_NodeExecutionMetadata{Call: c} + c_call := _m.On("NodeExecutionMetadata", matchers...) + return &NodeExecutionContext_NodeExecutionMetadata{Call: c_call} } // NodeExecutionMetadata provides a mock function with given fields: @@ -368,13 +368,13 @@ func (_m NodeExecutionContext_NodeID) Return(_a0 string) *NodeExecutionContext_N } func (_m *NodeExecutionContext) OnNodeID() *NodeExecutionContext_NodeID { - c := _m.On("NodeID") - return &NodeExecutionContext_NodeID{Call: c} + c_call := _m.On("NodeID") + return &NodeExecutionContext_NodeID{Call: c_call} } func (_m *NodeExecutionContext) OnNodeIDMatch(matchers ...interface{}) *NodeExecutionContext_NodeID { - c := _m.On("NodeID", matchers...) - return &NodeExecutionContext_NodeID{Call: c} + c_call := _m.On("NodeID", matchers...) + return &NodeExecutionContext_NodeID{Call: c_call} } // NodeID provides a mock function with given fields: @@ -400,13 +400,13 @@ func (_m NodeExecutionContext_NodeStateReader) Return(_a0 handler.NodeStateReade } func (_m *NodeExecutionContext) OnNodeStateReader() *NodeExecutionContext_NodeStateReader { - c := _m.On("NodeStateReader") - return &NodeExecutionContext_NodeStateReader{Call: c} + c_call := _m.On("NodeStateReader") + return &NodeExecutionContext_NodeStateReader{Call: c_call} } func (_m *NodeExecutionContext) OnNodeStateReaderMatch(matchers ...interface{}) *NodeExecutionContext_NodeStateReader { - c := _m.On("NodeStateReader", matchers...) - return &NodeExecutionContext_NodeStateReader{Call: c} + c_call := _m.On("NodeStateReader", matchers...) + return &NodeExecutionContext_NodeStateReader{Call: c_call} } // NodeStateReader provides a mock function with given fields: @@ -434,13 +434,13 @@ func (_m NodeExecutionContext_NodeStateWriter) Return(_a0 handler.NodeStateWrite } func (_m *NodeExecutionContext) OnNodeStateWriter() *NodeExecutionContext_NodeStateWriter { - c := _m.On("NodeStateWriter") - return &NodeExecutionContext_NodeStateWriter{Call: c} + c_call := _m.On("NodeStateWriter") + return &NodeExecutionContext_NodeStateWriter{Call: c_call} } func (_m *NodeExecutionContext) OnNodeStateWriterMatch(matchers ...interface{}) *NodeExecutionContext_NodeStateWriter { - c := _m.On("NodeStateWriter", matchers...) - return &NodeExecutionContext_NodeStateWriter{Call: c} + c_call := _m.On("NodeStateWriter", matchers...) + return &NodeExecutionContext_NodeStateWriter{Call: c_call} } // NodeStateWriter provides a mock function with given fields: @@ -468,13 +468,13 @@ func (_m NodeExecutionContext_NodeStatus) Return(_a0 v1alpha1.ExecutableNodeStat } func (_m *NodeExecutionContext) OnNodeStatus() *NodeExecutionContext_NodeStatus { - c := _m.On("NodeStatus") - return &NodeExecutionContext_NodeStatus{Call: c} + c_call := _m.On("NodeStatus") + return &NodeExecutionContext_NodeStatus{Call: c_call} } func (_m *NodeExecutionContext) OnNodeStatusMatch(matchers ...interface{}) *NodeExecutionContext_NodeStatus { - c := _m.On("NodeStatus", matchers...) - return &NodeExecutionContext_NodeStatus{Call: c} + c_call := _m.On("NodeStatus", matchers...) + return &NodeExecutionContext_NodeStatus{Call: c_call} } // NodeStatus provides a mock function with given fields: @@ -502,13 +502,13 @@ func (_m NodeExecutionContext_OutputShardSelector) Return(_a0 ioutils.ShardSelec } func (_m *NodeExecutionContext) OnOutputShardSelector() *NodeExecutionContext_OutputShardSelector { - c := _m.On("OutputShardSelector") - return &NodeExecutionContext_OutputShardSelector{Call: c} + c_call := _m.On("OutputShardSelector") + return &NodeExecutionContext_OutputShardSelector{Call: c_call} } func (_m *NodeExecutionContext) OnOutputShardSelectorMatch(matchers ...interface{}) *NodeExecutionContext_OutputShardSelector { - c := _m.On("OutputShardSelector", matchers...) - return &NodeExecutionContext_OutputShardSelector{Call: c} + c_call := _m.On("OutputShardSelector", matchers...) + return &NodeExecutionContext_OutputShardSelector{Call: c_call} } // OutputShardSelector provides a mock function with given fields: @@ -536,13 +536,13 @@ func (_m NodeExecutionContext_RawOutputPrefix) Return(_a0 storage.DataReference) } func (_m *NodeExecutionContext) OnRawOutputPrefix() *NodeExecutionContext_RawOutputPrefix { - c := _m.On("RawOutputPrefix") - return &NodeExecutionContext_RawOutputPrefix{Call: c} + c_call := _m.On("RawOutputPrefix") + return &NodeExecutionContext_RawOutputPrefix{Call: c_call} } func (_m *NodeExecutionContext) OnRawOutputPrefixMatch(matchers ...interface{}) *NodeExecutionContext_RawOutputPrefix { - c := _m.On("RawOutputPrefix", matchers...) - return &NodeExecutionContext_RawOutputPrefix{Call: c} + c_call := _m.On("RawOutputPrefix", matchers...) + return &NodeExecutionContext_RawOutputPrefix{Call: c_call} } // RawOutputPrefix provides a mock function with given fields: @@ -568,13 +568,13 @@ func (_m NodeExecutionContext_TaskReader) Return(_a0 handler.TaskReader) *NodeEx } func (_m *NodeExecutionContext) OnTaskReader() *NodeExecutionContext_TaskReader { - c := _m.On("TaskReader") - return &NodeExecutionContext_TaskReader{Call: c} + c_call := _m.On("TaskReader") + return &NodeExecutionContext_TaskReader{Call: c_call} } func (_m *NodeExecutionContext) OnTaskReaderMatch(matchers ...interface{}) *NodeExecutionContext_TaskReader { - c := _m.On("TaskReader", matchers...) - return &NodeExecutionContext_TaskReader{Call: c} + c_call := _m.On("TaskReader", matchers...) + return &NodeExecutionContext_TaskReader{Call: c_call} } // TaskReader provides a mock function with given fields: diff --git a/pkg/controller/nodes/handler/mocks/node_execution_metadata.go b/pkg/controller/nodes/handler/mocks/node_execution_metadata.go index a8980e0408..a8b6ab4a4a 100644 --- a/pkg/controller/nodes/handler/mocks/node_execution_metadata.go +++ b/pkg/controller/nodes/handler/mocks/node_execution_metadata.go @@ -26,13 +26,13 @@ func (_m NodeExecutionMetadata_GetAnnotations) Return(_a0 map[string]string) *No } func (_m *NodeExecutionMetadata) OnGetAnnotations() *NodeExecutionMetadata_GetAnnotations { - c := _m.On("GetAnnotations") - return &NodeExecutionMetadata_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations") + return &NodeExecutionMetadata_GetAnnotations{Call: c_call} } func (_m *NodeExecutionMetadata) OnGetAnnotationsMatch(matchers ...interface{}) *NodeExecutionMetadata_GetAnnotations { - c := _m.On("GetAnnotations", matchers...) - return &NodeExecutionMetadata_GetAnnotations{Call: c} + c_call := _m.On("GetAnnotations", matchers...) + return &NodeExecutionMetadata_GetAnnotations{Call: c_call} } // GetAnnotations provides a mock function with given fields: @@ -60,13 +60,13 @@ func (_m NodeExecutionMetadata_GetInterruptibleFailureThreshold) Return(_a0 uint } func (_m *NodeExecutionMetadata) OnGetInterruptibleFailureThreshold() *NodeExecutionMetadata_GetInterruptibleFailureThreshold { - c := _m.On("GetInterruptibleFailureThreshold") - return &NodeExecutionMetadata_GetInterruptibleFailureThreshold{Call: c} + c_call := _m.On("GetInterruptibleFailureThreshold") + return &NodeExecutionMetadata_GetInterruptibleFailureThreshold{Call: c_call} } func (_m *NodeExecutionMetadata) OnGetInterruptibleFailureThresholdMatch(matchers ...interface{}) *NodeExecutionMetadata_GetInterruptibleFailureThreshold { - c := _m.On("GetInterruptibleFailureThreshold", matchers...) - return &NodeExecutionMetadata_GetInterruptibleFailureThreshold{Call: c} + c_call := _m.On("GetInterruptibleFailureThreshold", matchers...) + return &NodeExecutionMetadata_GetInterruptibleFailureThreshold{Call: c_call} } // GetInterruptibleFailureThreshold provides a mock function with given fields: @@ -92,13 +92,13 @@ func (_m NodeExecutionMetadata_GetK8sServiceAccount) Return(_a0 string) *NodeExe } func (_m *NodeExecutionMetadata) OnGetK8sServiceAccount() *NodeExecutionMetadata_GetK8sServiceAccount { - c := _m.On("GetK8sServiceAccount") - return &NodeExecutionMetadata_GetK8sServiceAccount{Call: c} + c_call := _m.On("GetK8sServiceAccount") + return &NodeExecutionMetadata_GetK8sServiceAccount{Call: c_call} } func (_m *NodeExecutionMetadata) OnGetK8sServiceAccountMatch(matchers ...interface{}) *NodeExecutionMetadata_GetK8sServiceAccount { - c := _m.On("GetK8sServiceAccount", matchers...) - return &NodeExecutionMetadata_GetK8sServiceAccount{Call: c} + c_call := _m.On("GetK8sServiceAccount", matchers...) + return &NodeExecutionMetadata_GetK8sServiceAccount{Call: c_call} } // GetK8sServiceAccount provides a mock function with given fields: @@ -124,13 +124,13 @@ func (_m NodeExecutionMetadata_GetLabels) Return(_a0 map[string]string) *NodeExe } func (_m *NodeExecutionMetadata) OnGetLabels() *NodeExecutionMetadata_GetLabels { - c := _m.On("GetLabels") - return &NodeExecutionMetadata_GetLabels{Call: c} + c_call := _m.On("GetLabels") + return &NodeExecutionMetadata_GetLabels{Call: c_call} } func (_m *NodeExecutionMetadata) OnGetLabelsMatch(matchers ...interface{}) *NodeExecutionMetadata_GetLabels { - c := _m.On("GetLabels", matchers...) - return &NodeExecutionMetadata_GetLabels{Call: c} + c_call := _m.On("GetLabels", matchers...) + return &NodeExecutionMetadata_GetLabels{Call: c_call} } // GetLabels provides a mock function with given fields: @@ -158,13 +158,13 @@ func (_m NodeExecutionMetadata_GetNamespace) Return(_a0 string) *NodeExecutionMe } func (_m *NodeExecutionMetadata) OnGetNamespace() *NodeExecutionMetadata_GetNamespace { - c := _m.On("GetNamespace") - return &NodeExecutionMetadata_GetNamespace{Call: c} + c_call := _m.On("GetNamespace") + return &NodeExecutionMetadata_GetNamespace{Call: c_call} } func (_m *NodeExecutionMetadata) OnGetNamespaceMatch(matchers ...interface{}) *NodeExecutionMetadata_GetNamespace { - c := _m.On("GetNamespace", matchers...) - return &NodeExecutionMetadata_GetNamespace{Call: c} + c_call := _m.On("GetNamespace", matchers...) + return &NodeExecutionMetadata_GetNamespace{Call: c_call} } // GetNamespace provides a mock function with given fields: @@ -190,13 +190,13 @@ func (_m NodeExecutionMetadata_GetNodeExecutionID) Return(_a0 *core.NodeExecutio } func (_m *NodeExecutionMetadata) OnGetNodeExecutionID() *NodeExecutionMetadata_GetNodeExecutionID { - c := _m.On("GetNodeExecutionID") - return &NodeExecutionMetadata_GetNodeExecutionID{Call: c} + c_call := _m.On("GetNodeExecutionID") + return &NodeExecutionMetadata_GetNodeExecutionID{Call: c_call} } func (_m *NodeExecutionMetadata) OnGetNodeExecutionIDMatch(matchers ...interface{}) *NodeExecutionMetadata_GetNodeExecutionID { - c := _m.On("GetNodeExecutionID", matchers...) - return &NodeExecutionMetadata_GetNodeExecutionID{Call: c} + c_call := _m.On("GetNodeExecutionID", matchers...) + return &NodeExecutionMetadata_GetNodeExecutionID{Call: c_call} } // GetNodeExecutionID provides a mock function with given fields: @@ -224,13 +224,13 @@ func (_m NodeExecutionMetadata_GetOwnerID) Return(_a0 types.NamespacedName) *Nod } func (_m *NodeExecutionMetadata) OnGetOwnerID() *NodeExecutionMetadata_GetOwnerID { - c := _m.On("GetOwnerID") - return &NodeExecutionMetadata_GetOwnerID{Call: c} + c_call := _m.On("GetOwnerID") + return &NodeExecutionMetadata_GetOwnerID{Call: c_call} } func (_m *NodeExecutionMetadata) OnGetOwnerIDMatch(matchers ...interface{}) *NodeExecutionMetadata_GetOwnerID { - c := _m.On("GetOwnerID", matchers...) - return &NodeExecutionMetadata_GetOwnerID{Call: c} + c_call := _m.On("GetOwnerID", matchers...) + return &NodeExecutionMetadata_GetOwnerID{Call: c_call} } // GetOwnerID provides a mock function with given fields: @@ -256,13 +256,13 @@ func (_m NodeExecutionMetadata_GetOwnerReference) Return(_a0 v1.OwnerReference) } func (_m *NodeExecutionMetadata) OnGetOwnerReference() *NodeExecutionMetadata_GetOwnerReference { - c := _m.On("GetOwnerReference") - return &NodeExecutionMetadata_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference") + return &NodeExecutionMetadata_GetOwnerReference{Call: c_call} } func (_m *NodeExecutionMetadata) OnGetOwnerReferenceMatch(matchers ...interface{}) *NodeExecutionMetadata_GetOwnerReference { - c := _m.On("GetOwnerReference", matchers...) - return &NodeExecutionMetadata_GetOwnerReference{Call: c} + c_call := _m.On("GetOwnerReference", matchers...) + return &NodeExecutionMetadata_GetOwnerReference{Call: c_call} } // GetOwnerReference provides a mock function with given fields: @@ -288,13 +288,13 @@ func (_m NodeExecutionMetadata_GetSecurityContext) Return(_a0 core.SecurityConte } func (_m *NodeExecutionMetadata) OnGetSecurityContext() *NodeExecutionMetadata_GetSecurityContext { - c := _m.On("GetSecurityContext") - return &NodeExecutionMetadata_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext") + return &NodeExecutionMetadata_GetSecurityContext{Call: c_call} } func (_m *NodeExecutionMetadata) OnGetSecurityContextMatch(matchers ...interface{}) *NodeExecutionMetadata_GetSecurityContext { - c := _m.On("GetSecurityContext", matchers...) - return &NodeExecutionMetadata_GetSecurityContext{Call: c} + c_call := _m.On("GetSecurityContext", matchers...) + return &NodeExecutionMetadata_GetSecurityContext{Call: c_call} } // GetSecurityContext provides a mock function with given fields: @@ -320,13 +320,13 @@ func (_m NodeExecutionMetadata_IsInterruptible) Return(_a0 bool) *NodeExecutionM } func (_m *NodeExecutionMetadata) OnIsInterruptible() *NodeExecutionMetadata_IsInterruptible { - c := _m.On("IsInterruptible") - return &NodeExecutionMetadata_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible") + return &NodeExecutionMetadata_IsInterruptible{Call: c_call} } func (_m *NodeExecutionMetadata) OnIsInterruptibleMatch(matchers ...interface{}) *NodeExecutionMetadata_IsInterruptible { - c := _m.On("IsInterruptible", matchers...) - return &NodeExecutionMetadata_IsInterruptible{Call: c} + c_call := _m.On("IsInterruptible", matchers...) + return &NodeExecutionMetadata_IsInterruptible{Call: c_call} } // IsInterruptible provides a mock function with given fields: diff --git a/pkg/controller/nodes/handler/mocks/node_state_reader.go b/pkg/controller/nodes/handler/mocks/node_state_reader.go index 93be918652..f8ee782c15 100644 --- a/pkg/controller/nodes/handler/mocks/node_state_reader.go +++ b/pkg/controller/nodes/handler/mocks/node_state_reader.go @@ -21,13 +21,13 @@ func (_m NodeStateReader_GetBranchNode) Return(_a0 handler.BranchNodeState) *Nod } func (_m *NodeStateReader) OnGetBranchNode() *NodeStateReader_GetBranchNode { - c := _m.On("GetBranchNode") - return &NodeStateReader_GetBranchNode{Call: c} + c_call := _m.On("GetBranchNode") + return &NodeStateReader_GetBranchNode{Call: c_call} } func (_m *NodeStateReader) OnGetBranchNodeMatch(matchers ...interface{}) *NodeStateReader_GetBranchNode { - c := _m.On("GetBranchNode", matchers...) - return &NodeStateReader_GetBranchNode{Call: c} + c_call := _m.On("GetBranchNode", matchers...) + return &NodeStateReader_GetBranchNode{Call: c_call} } // GetBranchNode provides a mock function with given fields: @@ -53,13 +53,13 @@ func (_m NodeStateReader_GetDynamicNodeState) Return(_a0 handler.DynamicNodeStat } func (_m *NodeStateReader) OnGetDynamicNodeState() *NodeStateReader_GetDynamicNodeState { - c := _m.On("GetDynamicNodeState") - return &NodeStateReader_GetDynamicNodeState{Call: c} + c_call := _m.On("GetDynamicNodeState") + return &NodeStateReader_GetDynamicNodeState{Call: c_call} } func (_m *NodeStateReader) OnGetDynamicNodeStateMatch(matchers ...interface{}) *NodeStateReader_GetDynamicNodeState { - c := _m.On("GetDynamicNodeState", matchers...) - return &NodeStateReader_GetDynamicNodeState{Call: c} + c_call := _m.On("GetDynamicNodeState", matchers...) + return &NodeStateReader_GetDynamicNodeState{Call: c_call} } // GetDynamicNodeState provides a mock function with given fields: @@ -85,13 +85,13 @@ func (_m NodeStateReader_GetTaskNodeState) Return(_a0 handler.TaskNodeState) *No } func (_m *NodeStateReader) OnGetTaskNodeState() *NodeStateReader_GetTaskNodeState { - c := _m.On("GetTaskNodeState") - return &NodeStateReader_GetTaskNodeState{Call: c} + c_call := _m.On("GetTaskNodeState") + return &NodeStateReader_GetTaskNodeState{Call: c_call} } func (_m *NodeStateReader) OnGetTaskNodeStateMatch(matchers ...interface{}) *NodeStateReader_GetTaskNodeState { - c := _m.On("GetTaskNodeState", matchers...) - return &NodeStateReader_GetTaskNodeState{Call: c} + c_call := _m.On("GetTaskNodeState", matchers...) + return &NodeStateReader_GetTaskNodeState{Call: c_call} } // GetTaskNodeState provides a mock function with given fields: @@ -117,13 +117,13 @@ func (_m NodeStateReader_GetWorkflowNodeState) Return(_a0 handler.WorkflowNodeSt } func (_m *NodeStateReader) OnGetWorkflowNodeState() *NodeStateReader_GetWorkflowNodeState { - c := _m.On("GetWorkflowNodeState") - return &NodeStateReader_GetWorkflowNodeState{Call: c} + c_call := _m.On("GetWorkflowNodeState") + return &NodeStateReader_GetWorkflowNodeState{Call: c_call} } func (_m *NodeStateReader) OnGetWorkflowNodeStateMatch(matchers ...interface{}) *NodeStateReader_GetWorkflowNodeState { - c := _m.On("GetWorkflowNodeState", matchers...) - return &NodeStateReader_GetWorkflowNodeState{Call: c} + c_call := _m.On("GetWorkflowNodeState", matchers...) + return &NodeStateReader_GetWorkflowNodeState{Call: c_call} } // GetWorkflowNodeState provides a mock function with given fields: diff --git a/pkg/controller/nodes/handler/mocks/node_state_writer.go b/pkg/controller/nodes/handler/mocks/node_state_writer.go index 126a05e23c..6820f4504d 100644 --- a/pkg/controller/nodes/handler/mocks/node_state_writer.go +++ b/pkg/controller/nodes/handler/mocks/node_state_writer.go @@ -21,13 +21,13 @@ func (_m NodeStateWriter_PutBranchNode) Return(_a0 error) *NodeStateWriter_PutBr } func (_m *NodeStateWriter) OnPutBranchNode(s handler.BranchNodeState) *NodeStateWriter_PutBranchNode { - c := _m.On("PutBranchNode", s) - return &NodeStateWriter_PutBranchNode{Call: c} + c_call := _m.On("PutBranchNode", s) + return &NodeStateWriter_PutBranchNode{Call: c_call} } func (_m *NodeStateWriter) OnPutBranchNodeMatch(matchers ...interface{}) *NodeStateWriter_PutBranchNode { - c := _m.On("PutBranchNode", matchers...) - return &NodeStateWriter_PutBranchNode{Call: c} + c_call := _m.On("PutBranchNode", matchers...) + return &NodeStateWriter_PutBranchNode{Call: c_call} } // PutBranchNode provides a mock function with given fields: s @@ -53,13 +53,13 @@ func (_m NodeStateWriter_PutDynamicNodeState) Return(_a0 error) *NodeStateWriter } func (_m *NodeStateWriter) OnPutDynamicNodeState(s handler.DynamicNodeState) *NodeStateWriter_PutDynamicNodeState { - c := _m.On("PutDynamicNodeState", s) - return &NodeStateWriter_PutDynamicNodeState{Call: c} + c_call := _m.On("PutDynamicNodeState", s) + return &NodeStateWriter_PutDynamicNodeState{Call: c_call} } func (_m *NodeStateWriter) OnPutDynamicNodeStateMatch(matchers ...interface{}) *NodeStateWriter_PutDynamicNodeState { - c := _m.On("PutDynamicNodeState", matchers...) - return &NodeStateWriter_PutDynamicNodeState{Call: c} + c_call := _m.On("PutDynamicNodeState", matchers...) + return &NodeStateWriter_PutDynamicNodeState{Call: c_call} } // PutDynamicNodeState provides a mock function with given fields: s @@ -85,13 +85,13 @@ func (_m NodeStateWriter_PutTaskNodeState) Return(_a0 error) *NodeStateWriter_Pu } func (_m *NodeStateWriter) OnPutTaskNodeState(s handler.TaskNodeState) *NodeStateWriter_PutTaskNodeState { - c := _m.On("PutTaskNodeState", s) - return &NodeStateWriter_PutTaskNodeState{Call: c} + c_call := _m.On("PutTaskNodeState", s) + return &NodeStateWriter_PutTaskNodeState{Call: c_call} } func (_m *NodeStateWriter) OnPutTaskNodeStateMatch(matchers ...interface{}) *NodeStateWriter_PutTaskNodeState { - c := _m.On("PutTaskNodeState", matchers...) - return &NodeStateWriter_PutTaskNodeState{Call: c} + c_call := _m.On("PutTaskNodeState", matchers...) + return &NodeStateWriter_PutTaskNodeState{Call: c_call} } // PutTaskNodeState provides a mock function with given fields: s @@ -117,13 +117,13 @@ func (_m NodeStateWriter_PutWorkflowNodeState) Return(_a0 error) *NodeStateWrite } func (_m *NodeStateWriter) OnPutWorkflowNodeState(s handler.WorkflowNodeState) *NodeStateWriter_PutWorkflowNodeState { - c := _m.On("PutWorkflowNodeState", s) - return &NodeStateWriter_PutWorkflowNodeState{Call: c} + c_call := _m.On("PutWorkflowNodeState", s) + return &NodeStateWriter_PutWorkflowNodeState{Call: c_call} } func (_m *NodeStateWriter) OnPutWorkflowNodeStateMatch(matchers ...interface{}) *NodeStateWriter_PutWorkflowNodeState { - c := _m.On("PutWorkflowNodeState", matchers...) - return &NodeStateWriter_PutWorkflowNodeState{Call: c} + c_call := _m.On("PutWorkflowNodeState", matchers...) + return &NodeStateWriter_PutWorkflowNodeState{Call: c_call} } // PutWorkflowNodeState provides a mock function with given fields: s diff --git a/pkg/controller/nodes/handler/mocks/setup_context.go b/pkg/controller/nodes/handler/mocks/setup_context.go index 8475073585..47a7e655f5 100644 --- a/pkg/controller/nodes/handler/mocks/setup_context.go +++ b/pkg/controller/nodes/handler/mocks/setup_context.go @@ -21,13 +21,13 @@ func (_m SetupContext_EnqueueOwner) Return(_a0 func(string)) *SetupContext_Enque } func (_m *SetupContext) OnEnqueueOwner() *SetupContext_EnqueueOwner { - c := _m.On("EnqueueOwner") - return &SetupContext_EnqueueOwner{Call: c} + c_call := _m.On("EnqueueOwner") + return &SetupContext_EnqueueOwner{Call: c_call} } func (_m *SetupContext) OnEnqueueOwnerMatch(matchers ...interface{}) *SetupContext_EnqueueOwner { - c := _m.On("EnqueueOwner", matchers...) - return &SetupContext_EnqueueOwner{Call: c} + c_call := _m.On("EnqueueOwner", matchers...) + return &SetupContext_EnqueueOwner{Call: c_call} } // EnqueueOwner provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m SetupContext_MetricsScope) Return(_a0 promutils.Scope) *SetupContext_Me } func (_m *SetupContext) OnMetricsScope() *SetupContext_MetricsScope { - c := _m.On("MetricsScope") - return &SetupContext_MetricsScope{Call: c} + c_call := _m.On("MetricsScope") + return &SetupContext_MetricsScope{Call: c_call} } func (_m *SetupContext) OnMetricsScopeMatch(matchers ...interface{}) *SetupContext_MetricsScope { - c := _m.On("MetricsScope", matchers...) - return &SetupContext_MetricsScope{Call: c} + c_call := _m.On("MetricsScope", matchers...) + return &SetupContext_MetricsScope{Call: c_call} } // MetricsScope provides a mock function with given fields: @@ -89,13 +89,13 @@ func (_m SetupContext_OwnerKind) Return(_a0 string) *SetupContext_OwnerKind { } func (_m *SetupContext) OnOwnerKind() *SetupContext_OwnerKind { - c := _m.On("OwnerKind") - return &SetupContext_OwnerKind{Call: c} + c_call := _m.On("OwnerKind") + return &SetupContext_OwnerKind{Call: c_call} } func (_m *SetupContext) OnOwnerKindMatch(matchers ...interface{}) *SetupContext_OwnerKind { - c := _m.On("OwnerKind", matchers...) - return &SetupContext_OwnerKind{Call: c} + c_call := _m.On("OwnerKind", matchers...) + return &SetupContext_OwnerKind{Call: c_call} } // OwnerKind provides a mock function with given fields: diff --git a/pkg/controller/nodes/handler/mocks/task_reader.go b/pkg/controller/nodes/handler/mocks/task_reader.go index 44e855ac30..deb5d52777 100644 --- a/pkg/controller/nodes/handler/mocks/task_reader.go +++ b/pkg/controller/nodes/handler/mocks/task_reader.go @@ -24,13 +24,13 @@ func (_m TaskReader_GetTaskID) Return(_a0 *core.Identifier) *TaskReader_GetTaskI } func (_m *TaskReader) OnGetTaskID() *TaskReader_GetTaskID { - c := _m.On("GetTaskID") - return &TaskReader_GetTaskID{Call: c} + c_call := _m.On("GetTaskID") + return &TaskReader_GetTaskID{Call: c_call} } func (_m *TaskReader) OnGetTaskIDMatch(matchers ...interface{}) *TaskReader_GetTaskID { - c := _m.On("GetTaskID", matchers...) - return &TaskReader_GetTaskID{Call: c} + c_call := _m.On("GetTaskID", matchers...) + return &TaskReader_GetTaskID{Call: c_call} } // GetTaskID provides a mock function with given fields: @@ -58,13 +58,13 @@ func (_m TaskReader_GetTaskType) Return(_a0 string) *TaskReader_GetTaskType { } func (_m *TaskReader) OnGetTaskType() *TaskReader_GetTaskType { - c := _m.On("GetTaskType") - return &TaskReader_GetTaskType{Call: c} + c_call := _m.On("GetTaskType") + return &TaskReader_GetTaskType{Call: c_call} } func (_m *TaskReader) OnGetTaskTypeMatch(matchers ...interface{}) *TaskReader_GetTaskType { - c := _m.On("GetTaskType", matchers...) - return &TaskReader_GetTaskType{Call: c} + c_call := _m.On("GetTaskType", matchers...) + return &TaskReader_GetTaskType{Call: c_call} } // GetTaskType provides a mock function with given fields: @@ -90,13 +90,13 @@ func (_m TaskReader_Read) Return(_a0 *core.TaskTemplate, _a1 error) *TaskReader_ } func (_m *TaskReader) OnRead(ctx context.Context) *TaskReader_Read { - c := _m.On("Read", ctx) - return &TaskReader_Read{Call: c} + c_call := _m.On("Read", ctx) + return &TaskReader_Read{Call: c_call} } func (_m *TaskReader) OnReadMatch(matchers ...interface{}) *TaskReader_Read { - c := _m.On("Read", matchers...) - return &TaskReader_Read{Call: c} + c_call := _m.On("Read", matchers...) + return &TaskReader_Read{Call: c_call} } // Read provides a mock function with given fields: ctx diff --git a/pkg/controller/nodes/mocks/handler_factory.go b/pkg/controller/nodes/mocks/handler_factory.go index 21c4d167f3..fffa3c8188 100644 --- a/pkg/controller/nodes/mocks/handler_factory.go +++ b/pkg/controller/nodes/mocks/handler_factory.go @@ -25,13 +25,13 @@ func (_m HandlerFactory_GetHandler) Return(_a0 handler.Node, _a1 error) *Handler } func (_m *HandlerFactory) OnGetHandler(kind v1alpha1.NodeKind) *HandlerFactory_GetHandler { - c := _m.On("GetHandler", kind) - return &HandlerFactory_GetHandler{Call: c} + c_call := _m.On("GetHandler", kind) + return &HandlerFactory_GetHandler{Call: c_call} } func (_m *HandlerFactory) OnGetHandlerMatch(matchers ...interface{}) *HandlerFactory_GetHandler { - c := _m.On("GetHandler", matchers...) - return &HandlerFactory_GetHandler{Call: c} + c_call := _m.On("GetHandler", matchers...) + return &HandlerFactory_GetHandler{Call: c_call} } // GetHandler provides a mock function with given fields: kind @@ -66,13 +66,13 @@ func (_m HandlerFactory_Setup) Return(_a0 error) *HandlerFactory_Setup { } func (_m *HandlerFactory) OnSetup(ctx context.Context, setup handler.SetupContext) *HandlerFactory_Setup { - c := _m.On("Setup", ctx, setup) - return &HandlerFactory_Setup{Call: c} + c_call := _m.On("Setup", ctx, setup) + return &HandlerFactory_Setup{Call: c_call} } func (_m *HandlerFactory) OnSetupMatch(matchers ...interface{}) *HandlerFactory_Setup { - c := _m.On("Setup", matchers...) - return &HandlerFactory_Setup{Call: c} + c_call := _m.On("Setup", matchers...) + return &HandlerFactory_Setup{Call: c_call} } // Setup provides a mock function with given fields: ctx, setup diff --git a/pkg/controller/nodes/mocks/output_resolver.go b/pkg/controller/nodes/mocks/output_resolver.go index 31786c59af..51a7028001 100644 --- a/pkg/controller/nodes/mocks/output_resolver.go +++ b/pkg/controller/nodes/mocks/output_resolver.go @@ -27,13 +27,13 @@ func (_m OutputResolver_ExtractOutput) Return(values *core.Literal, err error) * } func (_m *OutputResolver) OnExtractOutput(ctx context.Context, nl executors.NodeLookup, n v1alpha1.ExecutableNode, bindToVar string) *OutputResolver_ExtractOutput { - c := _m.On("ExtractOutput", ctx, nl, n, bindToVar) - return &OutputResolver_ExtractOutput{Call: c} + c_call := _m.On("ExtractOutput", ctx, nl, n, bindToVar) + return &OutputResolver_ExtractOutput{Call: c_call} } func (_m *OutputResolver) OnExtractOutputMatch(matchers ...interface{}) *OutputResolver_ExtractOutput { - c := _m.On("ExtractOutput", matchers...) - return &OutputResolver_ExtractOutput{Call: c} + c_call := _m.On("ExtractOutput", matchers...) + return &OutputResolver_ExtractOutput{Call: c_call} } // ExtractOutput provides a mock function with given fields: ctx, nl, n, bindToVar diff --git a/pkg/controller/nodes/recovery/mocks/client.go b/pkg/controller/nodes/recovery/mocks/client.go index fe551d56be..e55dc7add0 100644 --- a/pkg/controller/nodes/recovery/mocks/client.go +++ b/pkg/controller/nodes/recovery/mocks/client.go @@ -26,13 +26,13 @@ func (_m Client_RecoverNodeExecution) Return(_a0 *admin.NodeExecution, _a1 error } func (_m *Client) OnRecoverNodeExecution(ctx context.Context, execID *core.WorkflowExecutionIdentifier, id *core.NodeExecutionIdentifier) *Client_RecoverNodeExecution { - c := _m.On("RecoverNodeExecution", ctx, execID, id) - return &Client_RecoverNodeExecution{Call: c} + c_call := _m.On("RecoverNodeExecution", ctx, execID, id) + return &Client_RecoverNodeExecution{Call: c_call} } func (_m *Client) OnRecoverNodeExecutionMatch(matchers ...interface{}) *Client_RecoverNodeExecution { - c := _m.On("RecoverNodeExecution", matchers...) - return &Client_RecoverNodeExecution{Call: c} + c_call := _m.On("RecoverNodeExecution", matchers...) + return &Client_RecoverNodeExecution{Call: c_call} } // RecoverNodeExecution provides a mock function with given fields: ctx, execID, id @@ -67,13 +67,13 @@ func (_m Client_RecoverNodeExecutionData) Return(_a0 *admin.NodeExecutionGetData } func (_m *Client) OnRecoverNodeExecutionData(ctx context.Context, execID *core.WorkflowExecutionIdentifier, id *core.NodeExecutionIdentifier) *Client_RecoverNodeExecutionData { - c := _m.On("RecoverNodeExecutionData", ctx, execID, id) - return &Client_RecoverNodeExecutionData{Call: c} + c_call := _m.On("RecoverNodeExecutionData", ctx, execID, id) + return &Client_RecoverNodeExecutionData{Call: c_call} } func (_m *Client) OnRecoverNodeExecutionDataMatch(matchers ...interface{}) *Client_RecoverNodeExecutionData { - c := _m.On("RecoverNodeExecutionData", matchers...) - return &Client_RecoverNodeExecutionData{Call: c} + c_call := _m.On("RecoverNodeExecutionData", matchers...) + return &Client_RecoverNodeExecutionData{Call: c_call} } // RecoverNodeExecutionData provides a mock function with given fields: ctx, execID, id diff --git a/pkg/controller/nodes/subworkflow/handler_test.go b/pkg/controller/nodes/subworkflow/handler_test.go index b7e17f9c6b..7af36b89b4 100644 --- a/pkg/controller/nodes/subworkflow/handler_test.go +++ b/pkg/controller/nodes/subworkflow/handler_test.go @@ -109,6 +109,10 @@ func createNodeContextWithVersion(phase v1alpha1.WorkflowNodePhase, n v1alpha1.E ex.OnGetName().Return("name") ex.OnGetExecutionConfig().Return(v1alpha1.ExecutionConfig{}) ex.OnIncrementParallelism().Return(1) + ex.OnGetSecurityContext().Return(core.SecurityContext{}) + ex.OnGetAnnotations().Return(nil) + ex.OnGetLabels().Return(nil) + ex.OnGetRawOutputDataConfig().Return(v1alpha1.RawOutputDataConfig{}) nCtx.OnExecutionContext().Return(ex) diff --git a/pkg/controller/nodes/subworkflow/launchplan.go b/pkg/controller/nodes/subworkflow/launchplan.go index 2c53ee4a07..c15dc20091 100644 --- a/pkg/controller/nodes/subworkflow/launchplan.go +++ b/pkg/controller/nodes/subworkflow/launchplan.go @@ -66,7 +66,13 @@ func (l *launchPlanHandler) StartLaunchPlan(ctx context.Context, nCtx handler.No launchCtx := launchplan.LaunchContext{ ParentNodeExecution: parentNodeExecutionID, + MaxParallelism: nCtx.ExecutionContext().GetExecutionConfig().MaxParallelism, + SecurityContext: nCtx.ExecutionContext().GetSecurityContext(), + RawOutputDataConfig: nCtx.ExecutionContext().GetRawOutputDataConfig().RawOutputDataConfig, + Labels: nCtx.ExecutionContext().GetLabels(), + Annotations: nCtx.ExecutionContext().GetAnnotations(), } + if nCtx.ExecutionContext().GetExecutionConfig().RecoveryExecution.WorkflowExecutionIdentifier != nil { recovered, err := l.recoveryClient.RecoverNodeExecution(ctx, nCtx.ExecutionContext().GetExecutionConfig().RecoveryExecution.WorkflowExecutionIdentifier, nCtx.NodeExecutionMetadata().GetNodeExecutionID()) if err != nil { diff --git a/pkg/controller/nodes/subworkflow/launchplan/admin.go b/pkg/controller/nodes/subworkflow/launchplan/admin.go index 1cfb990d8e..46e9de0776 100644 --- a/pkg/controller/nodes/subworkflow/launchplan/admin.go +++ b/pkg/controller/nodes/subworkflow/launchplan/admin.go @@ -89,10 +89,12 @@ func (a *adminLaunchPlanExecutor) Launch(ctx context.Context, launchCtx LaunchCo return nil } } + req := &admin.ExecutionCreateRequest{ Project: executionID.Project, Domain: executionID.Domain, Name: executionID.Name, + Inputs: inputs, Spec: &admin.ExecutionSpec{ LaunchPlan: launchPlanRef, Metadata: &admin.ExecutionMetadata{ @@ -101,9 +103,14 @@ func (a *adminLaunchPlanExecutor) Launch(ctx context.Context, launchCtx LaunchCo Principal: launchCtx.Principal, ParentNodeExecution: launchCtx.ParentNodeExecution, }, - Inputs: inputs, + Labels: &admin.Labels{Values: launchCtx.Labels}, + Annotations: &admin.Annotations{Values: launchCtx.Annotations}, + SecurityContext: &launchCtx.SecurityContext, + MaxParallelism: int32(launchCtx.MaxParallelism), + RawOutputDataConfig: launchCtx.RawOutputDataConfig, }, } + _, err = a.adminClient.CreateExecution(ctx, req) if err != nil { launchErr := a.handleLaunchError(ctx, !isRecovery, executionID, launchPlanRef, err) diff --git a/pkg/controller/nodes/subworkflow/launchplan/launchplan.go b/pkg/controller/nodes/subworkflow/launchplan/launchplan.go index 91c8c85884..7d31b6f92b 100644 --- a/pkg/controller/nodes/subworkflow/launchplan/launchplan.go +++ b/pkg/controller/nodes/subworkflow/launchplan/launchplan.go @@ -9,7 +9,7 @@ import ( //go:generate mockery -all -case=underscore -// A simple context that is used to start an execution of a LaunchPlan. It encapsulates enough parent information +// LaunchContext is a simple context that is used to start an execution of a LaunchPlan. It encapsulates enough parent information // to tie the executions type LaunchContext struct { // Nesting level of the current workflow (parent) @@ -20,25 +20,33 @@ type LaunchContext struct { ParentNodeExecution *core.NodeExecutionIdentifier // If a node in recovery mode launched this execution, propagate recovery mode to the child execution. RecoveryExecution *core.WorkflowExecutionIdentifier + // SecurityContext contains information from the parent execution about the security context. + SecurityContext core.SecurityContext + // MaxParallelism + MaxParallelism uint32 + // RawOutputDataConfig + RawOutputDataConfig *admin.RawOutputDataConfig + Annotations map[string]string + Labels map[string]string } -// Interface to be implemented by the remote system that can allow workflow launching capabilities +// Executor interface to be implemented by the remote system that can allow workflow launching capabilities type Executor interface { - // Start an execution of a launchplan + // Launch start an execution of a launchplan Launch(ctx context.Context, launchCtx LaunchContext, executionID *core.WorkflowExecutionIdentifier, launchPlanRef *core.Identifier, inputs *core.LiteralMap) error - // Retrieve status of a LaunchPlan execution + // GetStatus retrieves status of a LaunchPlan execution GetStatus(ctx context.Context, executionID *core.WorkflowExecutionIdentifier) (*admin.ExecutionClosure, error) // Kill a remote execution Kill(ctx context.Context, executionID *core.WorkflowExecutionIdentifier, reason string) error - // Initializes Executor. + // Initialize initializes Executor. Initialize(ctx context.Context) error } type Reader interface { - // Get the definition of a launch plan. This is primarily used to ensure all the TypedInterfaces match up before actually executing. + // GetLaunchPlan gets the definition of a launch plan. This is primarily used to ensure all the TypedInterfaces match up before actually executing. GetLaunchPlan(ctx context.Context, launchPlanRef *core.Identifier) (*admin.LaunchPlan, error) } diff --git a/pkg/controller/nodes/subworkflow/launchplan/mocks/executor.go b/pkg/controller/nodes/subworkflow/launchplan/mocks/executor.go index e1a6d1e099..303b426dc0 100644 --- a/pkg/controller/nodes/subworkflow/launchplan/mocks/executor.go +++ b/pkg/controller/nodes/subworkflow/launchplan/mocks/executor.go @@ -28,13 +28,13 @@ func (_m Executor_GetStatus) Return(_a0 *admin.ExecutionClosure, _a1 error) *Exe } func (_m *Executor) OnGetStatus(ctx context.Context, executionID *core.WorkflowExecutionIdentifier) *Executor_GetStatus { - c := _m.On("GetStatus", ctx, executionID) - return &Executor_GetStatus{Call: c} + c_call := _m.On("GetStatus", ctx, executionID) + return &Executor_GetStatus{Call: c_call} } func (_m *Executor) OnGetStatusMatch(matchers ...interface{}) *Executor_GetStatus { - c := _m.On("GetStatus", matchers...) - return &Executor_GetStatus{Call: c} + c_call := _m.On("GetStatus", matchers...) + return &Executor_GetStatus{Call: c_call} } // GetStatus provides a mock function with given fields: ctx, executionID @@ -69,13 +69,13 @@ func (_m Executor_Initialize) Return(_a0 error) *Executor_Initialize { } func (_m *Executor) OnInitialize(ctx context.Context) *Executor_Initialize { - c := _m.On("Initialize", ctx) - return &Executor_Initialize{Call: c} + c_call := _m.On("Initialize", ctx) + return &Executor_Initialize{Call: c_call} } func (_m *Executor) OnInitializeMatch(matchers ...interface{}) *Executor_Initialize { - c := _m.On("Initialize", matchers...) - return &Executor_Initialize{Call: c} + c_call := _m.On("Initialize", matchers...) + return &Executor_Initialize{Call: c_call} } // Initialize provides a mock function with given fields: ctx @@ -101,13 +101,13 @@ func (_m Executor_Kill) Return(_a0 error) *Executor_Kill { } func (_m *Executor) OnKill(ctx context.Context, executionID *core.WorkflowExecutionIdentifier, reason string) *Executor_Kill { - c := _m.On("Kill", ctx, executionID, reason) - return &Executor_Kill{Call: c} + c_call := _m.On("Kill", ctx, executionID, reason) + return &Executor_Kill{Call: c_call} } func (_m *Executor) OnKillMatch(matchers ...interface{}) *Executor_Kill { - c := _m.On("Kill", matchers...) - return &Executor_Kill{Call: c} + c_call := _m.On("Kill", matchers...) + return &Executor_Kill{Call: c_call} } // Kill provides a mock function with given fields: ctx, executionID, reason @@ -133,13 +133,13 @@ func (_m Executor_Launch) Return(_a0 error) *Executor_Launch { } func (_m *Executor) OnLaunch(ctx context.Context, launchCtx launchplan.LaunchContext, executionID *core.WorkflowExecutionIdentifier, launchPlanRef *core.Identifier, inputs *core.LiteralMap) *Executor_Launch { - c := _m.On("Launch", ctx, launchCtx, executionID, launchPlanRef, inputs) - return &Executor_Launch{Call: c} + c_call := _m.On("Launch", ctx, launchCtx, executionID, launchPlanRef, inputs) + return &Executor_Launch{Call: c_call} } func (_m *Executor) OnLaunchMatch(matchers ...interface{}) *Executor_Launch { - c := _m.On("Launch", matchers...) - return &Executor_Launch{Call: c} + c_call := _m.On("Launch", matchers...) + return &Executor_Launch{Call: c_call} } // Launch provides a mock function with given fields: ctx, launchCtx, executionID, launchPlanRef, inputs diff --git a/pkg/controller/nodes/subworkflow/launchplan/mocks/flyte_admin.go b/pkg/controller/nodes/subworkflow/launchplan/mocks/flyte_admin.go index d9848fdd6c..5efe449947 100644 --- a/pkg/controller/nodes/subworkflow/launchplan/mocks/flyte_admin.go +++ b/pkg/controller/nodes/subworkflow/launchplan/mocks/flyte_admin.go @@ -28,13 +28,13 @@ func (_m FlyteAdmin_GetLaunchPlan) Return(_a0 *admin.LaunchPlan, _a1 error) *Fly } func (_m *FlyteAdmin) OnGetLaunchPlan(ctx context.Context, launchPlanRef *core.Identifier) *FlyteAdmin_GetLaunchPlan { - c := _m.On("GetLaunchPlan", ctx, launchPlanRef) - return &FlyteAdmin_GetLaunchPlan{Call: c} + c_call := _m.On("GetLaunchPlan", ctx, launchPlanRef) + return &FlyteAdmin_GetLaunchPlan{Call: c_call} } func (_m *FlyteAdmin) OnGetLaunchPlanMatch(matchers ...interface{}) *FlyteAdmin_GetLaunchPlan { - c := _m.On("GetLaunchPlan", matchers...) - return &FlyteAdmin_GetLaunchPlan{Call: c} + c_call := _m.On("GetLaunchPlan", matchers...) + return &FlyteAdmin_GetLaunchPlan{Call: c_call} } // GetLaunchPlan provides a mock function with given fields: ctx, launchPlanRef @@ -69,13 +69,13 @@ func (_m FlyteAdmin_GetStatus) Return(_a0 *admin.ExecutionClosure, _a1 error) *F } func (_m *FlyteAdmin) OnGetStatus(ctx context.Context, executionID *core.WorkflowExecutionIdentifier) *FlyteAdmin_GetStatus { - c := _m.On("GetStatus", ctx, executionID) - return &FlyteAdmin_GetStatus{Call: c} + c_call := _m.On("GetStatus", ctx, executionID) + return &FlyteAdmin_GetStatus{Call: c_call} } func (_m *FlyteAdmin) OnGetStatusMatch(matchers ...interface{}) *FlyteAdmin_GetStatus { - c := _m.On("GetStatus", matchers...) - return &FlyteAdmin_GetStatus{Call: c} + c_call := _m.On("GetStatus", matchers...) + return &FlyteAdmin_GetStatus{Call: c_call} } // GetStatus provides a mock function with given fields: ctx, executionID @@ -110,13 +110,13 @@ func (_m FlyteAdmin_Initialize) Return(_a0 error) *FlyteAdmin_Initialize { } func (_m *FlyteAdmin) OnInitialize(ctx context.Context) *FlyteAdmin_Initialize { - c := _m.On("Initialize", ctx) - return &FlyteAdmin_Initialize{Call: c} + c_call := _m.On("Initialize", ctx) + return &FlyteAdmin_Initialize{Call: c_call} } func (_m *FlyteAdmin) OnInitializeMatch(matchers ...interface{}) *FlyteAdmin_Initialize { - c := _m.On("Initialize", matchers...) - return &FlyteAdmin_Initialize{Call: c} + c_call := _m.On("Initialize", matchers...) + return &FlyteAdmin_Initialize{Call: c_call} } // Initialize provides a mock function with given fields: ctx @@ -142,13 +142,13 @@ func (_m FlyteAdmin_Kill) Return(_a0 error) *FlyteAdmin_Kill { } func (_m *FlyteAdmin) OnKill(ctx context.Context, executionID *core.WorkflowExecutionIdentifier, reason string) *FlyteAdmin_Kill { - c := _m.On("Kill", ctx, executionID, reason) - return &FlyteAdmin_Kill{Call: c} + c_call := _m.On("Kill", ctx, executionID, reason) + return &FlyteAdmin_Kill{Call: c_call} } func (_m *FlyteAdmin) OnKillMatch(matchers ...interface{}) *FlyteAdmin_Kill { - c := _m.On("Kill", matchers...) - return &FlyteAdmin_Kill{Call: c} + c_call := _m.On("Kill", matchers...) + return &FlyteAdmin_Kill{Call: c_call} } // Kill provides a mock function with given fields: ctx, executionID, reason @@ -174,13 +174,13 @@ func (_m FlyteAdmin_Launch) Return(_a0 error) *FlyteAdmin_Launch { } func (_m *FlyteAdmin) OnLaunch(ctx context.Context, launchCtx launchplan.LaunchContext, executionID *core.WorkflowExecutionIdentifier, launchPlanRef *core.Identifier, inputs *core.LiteralMap) *FlyteAdmin_Launch { - c := _m.On("Launch", ctx, launchCtx, executionID, launchPlanRef, inputs) - return &FlyteAdmin_Launch{Call: c} + c_call := _m.On("Launch", ctx, launchCtx, executionID, launchPlanRef, inputs) + return &FlyteAdmin_Launch{Call: c_call} } func (_m *FlyteAdmin) OnLaunchMatch(matchers ...interface{}) *FlyteAdmin_Launch { - c := _m.On("Launch", matchers...) - return &FlyteAdmin_Launch{Call: c} + c_call := _m.On("Launch", matchers...) + return &FlyteAdmin_Launch{Call: c_call} } // Launch provides a mock function with given fields: ctx, launchCtx, executionID, launchPlanRef, inputs diff --git a/pkg/controller/nodes/subworkflow/launchplan/mocks/reader.go b/pkg/controller/nodes/subworkflow/launchplan/mocks/reader.go index d96e646deb..985d599e87 100644 --- a/pkg/controller/nodes/subworkflow/launchplan/mocks/reader.go +++ b/pkg/controller/nodes/subworkflow/launchplan/mocks/reader.go @@ -26,13 +26,13 @@ func (_m Reader_GetLaunchPlan) Return(_a0 *admin.LaunchPlan, _a1 error) *Reader_ } func (_m *Reader) OnGetLaunchPlan(ctx context.Context, launchPlanRef *core.Identifier) *Reader_GetLaunchPlan { - c := _m.On("GetLaunchPlan", ctx, launchPlanRef) - return &Reader_GetLaunchPlan{Call: c} + c_call := _m.On("GetLaunchPlan", ctx, launchPlanRef) + return &Reader_GetLaunchPlan{Call: c_call} } func (_m *Reader) OnGetLaunchPlanMatch(matchers ...interface{}) *Reader_GetLaunchPlan { - c := _m.On("GetLaunchPlan", matchers...) - return &Reader_GetLaunchPlan{Call: c} + c_call := _m.On("GetLaunchPlan", matchers...) + return &Reader_GetLaunchPlan{Call: c_call} } // GetLaunchPlan provides a mock function with given fields: ctx, launchPlanRef diff --git a/pkg/controller/nodes/subworkflow/launchplan_test.go b/pkg/controller/nodes/subworkflow/launchplan_test.go index f96e083aa9..cfabdf515e 100644 --- a/pkg/controller/nodes/subworkflow/launchplan_test.go +++ b/pkg/controller/nodes/subworkflow/launchplan_test.go @@ -256,6 +256,11 @@ func TestSubWorkflowHandler_StartLaunchPlan(t *testing.T) { }, }) ectx.OnIncrementParallelism().Return(1) + ectx.OnGetSecurityContext().Return(core.SecurityContext{}) + ectx.OnGetRawOutputDataConfig().Return(v1alpha1.RawOutputDataConfig{}) + ectx.OnGetLabels().Return(nil) + ectx.OnGetAnnotations().Return(nil) + nCtx.OnExecutionContext().Return(ectx) nCtx.OnCurrentAttempt().Return(uint32(1)) nCtx.OnNode().Return(mockNode) diff --git a/pkg/controller/nodes/task/config/config_flags.go b/pkg/controller/nodes/task/config/config_flags.go index 059eac2932..09a3465ed6 100755 --- a/pkg/controller/nodes/task/config/config_flags.go +++ b/pkg/controller/nodes/task/config/config_flags.go @@ -50,7 +50,7 @@ func (Config) mustMarshalJSON(v json.Marshaler) string { // flags is json-name.json-sub-name... etc. func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { cmdFlags := pflag.NewFlagSet("Config", pflag.ExitOnError) - cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "task-plugins.enabled-plugins"), []string{}, "Plugins enabled currently") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "task-plugins.enabled-plugins"), defaultConfig.TaskPlugins.EnabledPlugins, "Plugins enabled currently") cmdFlags.Int32(fmt.Sprintf("%v%v", prefix, "max-plugin-phase-versions"), defaultConfig.MaxPluginPhaseVersions, "Maximum number of plugin phase versions allowed for one phase.") cmdFlags.Bool(fmt.Sprintf("%v%v", prefix, "barrier.enabled"), defaultConfig.BarrierConfig.Enabled, "Enable Barrier transitions using inmemory context") cmdFlags.Int(fmt.Sprintf("%v%v", prefix, "barrier.cache-size"), defaultConfig.BarrierConfig.CacheSize, "Max number of barrier to preserve in memory") diff --git a/pkg/controller/nodes/task/config/config_flags_test.go b/pkg/controller/nodes/task/config/config_flags_test.go index eacff539a0..ef4f327d60 100755 --- a/pkg/controller/nodes/task/config/config_flags_test.go +++ b/pkg/controller/nodes/task/config/config_flags_test.go @@ -102,7 +102,7 @@ func TestConfig_SetFlags(t *testing.T) { t.Run("Test_task-plugins.enabled-plugins", func(t *testing.T) { t.Run("Override", func(t *testing.T) { - testValue := join_Config("1,1", ",") + testValue := join_Config(defaultConfig.TaskPlugins.EnabledPlugins, ",") cmdFlags.Set("task-plugins.enabled-plugins", testValue) if vStringSlice, err := cmdFlags.GetStringSlice("task-plugins.enabled-plugins"); err == nil { diff --git a/pkg/controller/nodes/task/resourcemanager/config/config_flags.go b/pkg/controller/nodes/task/resourcemanager/config/config_flags.go index b83ff310a4..66bcc0eb13 100755 --- a/pkg/controller/nodes/task/resourcemanager/config/config_flags.go +++ b/pkg/controller/nodes/task/resourcemanager/config/config_flags.go @@ -52,7 +52,7 @@ func (cfg Config) GetPFlagSet(prefix string) *pflag.FlagSet { cmdFlags := pflag.NewFlagSet("Config", pflag.ExitOnError) cmdFlags.String(fmt.Sprintf("%v%v", prefix, "type"), defaultConfig.Type, "Which resource manager to use") cmdFlags.Int(fmt.Sprintf("%v%v", prefix, "resourceMaxQuota"), defaultConfig.ResourceMaxQuota, "Global limit for concurrent Qubole queries") - cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "redis.hostPaths"), []string{}, "Redis hosts locations.") + cmdFlags.StringSlice(fmt.Sprintf("%v%v", prefix, "redis.hostPaths"), defaultConfig.RedisConfig.HostPaths, "Redis hosts locations.") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "redis.primaryName"), defaultConfig.RedisConfig.PrimaryName, "Redis primary name, fill in only if you are connecting to a redis sentinel cluster.") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "redis.hostPath"), defaultConfig.RedisConfig.HostPath, "Redis host location") cmdFlags.String(fmt.Sprintf("%v%v", prefix, "redis.hostKey"), defaultConfig.RedisConfig.HostKey, "Key for local Redis access") diff --git a/pkg/controller/nodes/task/resourcemanager/config/config_flags_test.go b/pkg/controller/nodes/task/resourcemanager/config/config_flags_test.go index 5ed6a99730..b7b0bd03f4 100755 --- a/pkg/controller/nodes/task/resourcemanager/config/config_flags_test.go +++ b/pkg/controller/nodes/task/resourcemanager/config/config_flags_test.go @@ -130,7 +130,7 @@ func TestConfig_SetFlags(t *testing.T) { t.Run("Test_redis.hostPaths", func(t *testing.T) { t.Run("Override", func(t *testing.T) { - testValue := join_Config("1,1", ",") + testValue := join_Config(defaultConfig.RedisConfig.HostPaths, ",") cmdFlags.Set("redis.hostPaths", testValue) if vStringSlice, err := cmdFlags.GetStringSlice("redis.hostPaths"); err == nil { diff --git a/pkg/controller/nodes/task/resourcemanager/mocks/redis_client.go b/pkg/controller/nodes/task/resourcemanager/mocks/redis_client.go index d16c4eee72..b2ad5b9dd8 100644 --- a/pkg/controller/nodes/task/resourcemanager/mocks/redis_client.go +++ b/pkg/controller/nodes/task/resourcemanager/mocks/redis_client.go @@ -18,13 +18,13 @@ func (_m RedisClient_Ping) Return(_a0 string, _a1 error) *RedisClient_Ping { } func (_m *RedisClient) OnPing() *RedisClient_Ping { - c := _m.On("Ping") - return &RedisClient_Ping{Call: c} + c_call := _m.On("Ping") + return &RedisClient_Ping{Call: c_call} } func (_m *RedisClient) OnPingMatch(matchers ...interface{}) *RedisClient_Ping { - c := _m.On("Ping", matchers...) - return &RedisClient_Ping{Call: c} + c_call := _m.On("Ping", matchers...) + return &RedisClient_Ping{Call: c_call} } // Ping provides a mock function with given fields: @@ -57,13 +57,13 @@ func (_m RedisClient_SAdd) Return(_a0 int64, _a1 error) *RedisClient_SAdd { } func (_m *RedisClient) OnSAdd(_a0 string, _a1 interface{}) *RedisClient_SAdd { - c := _m.On("SAdd", _a0, _a1) - return &RedisClient_SAdd{Call: c} + c_call := _m.On("SAdd", _a0, _a1) + return &RedisClient_SAdd{Call: c_call} } func (_m *RedisClient) OnSAddMatch(matchers ...interface{}) *RedisClient_SAdd { - c := _m.On("SAdd", matchers...) - return &RedisClient_SAdd{Call: c} + c_call := _m.On("SAdd", matchers...) + return &RedisClient_SAdd{Call: c_call} } // SAdd provides a mock function with given fields: _a0, _a1 @@ -96,13 +96,13 @@ func (_m RedisClient_SCard) Return(_a0 int64, _a1 error) *RedisClient_SCard { } func (_m *RedisClient) OnSCard(_a0 string) *RedisClient_SCard { - c := _m.On("SCard", _a0) - return &RedisClient_SCard{Call: c} + c_call := _m.On("SCard", _a0) + return &RedisClient_SCard{Call: c_call} } func (_m *RedisClient) OnSCardMatch(matchers ...interface{}) *RedisClient_SCard { - c := _m.On("SCard", matchers...) - return &RedisClient_SCard{Call: c} + c_call := _m.On("SCard", matchers...) + return &RedisClient_SCard{Call: c_call} } // SCard provides a mock function with given fields: _a0 @@ -135,13 +135,13 @@ func (_m RedisClient_SIsMember) Return(_a0 bool, _a1 error) *RedisClient_SIsMemb } func (_m *RedisClient) OnSIsMember(_a0 string, _a1 interface{}) *RedisClient_SIsMember { - c := _m.On("SIsMember", _a0, _a1) - return &RedisClient_SIsMember{Call: c} + c_call := _m.On("SIsMember", _a0, _a1) + return &RedisClient_SIsMember{Call: c_call} } func (_m *RedisClient) OnSIsMemberMatch(matchers ...interface{}) *RedisClient_SIsMember { - c := _m.On("SIsMember", matchers...) - return &RedisClient_SIsMember{Call: c} + c_call := _m.On("SIsMember", matchers...) + return &RedisClient_SIsMember{Call: c_call} } // SIsMember provides a mock function with given fields: _a0, _a1 @@ -174,13 +174,13 @@ func (_m RedisClient_SMembers) Return(_a0 []string, _a1 error) *RedisClient_SMem } func (_m *RedisClient) OnSMembers(_a0 string) *RedisClient_SMembers { - c := _m.On("SMembers", _a0) - return &RedisClient_SMembers{Call: c} + c_call := _m.On("SMembers", _a0) + return &RedisClient_SMembers{Call: c_call} } func (_m *RedisClient) OnSMembersMatch(matchers ...interface{}) *RedisClient_SMembers { - c := _m.On("SMembers", matchers...) - return &RedisClient_SMembers{Call: c} + c_call := _m.On("SMembers", matchers...) + return &RedisClient_SMembers{Call: c_call} } // SMembers provides a mock function with given fields: _a0 @@ -215,13 +215,13 @@ func (_m RedisClient_SRem) Return(_a0 int64, _a1 error) *RedisClient_SRem { } func (_m *RedisClient) OnSRem(_a0 string, _a1 interface{}) *RedisClient_SRem { - c := _m.On("SRem", _a0, _a1) - return &RedisClient_SRem{Call: c} + c_call := _m.On("SRem", _a0, _a1) + return &RedisClient_SRem{Call: c_call} } func (_m *RedisClient) OnSRemMatch(matchers ...interface{}) *RedisClient_SRem { - c := _m.On("SRem", matchers...) - return &RedisClient_SRem{Call: c} + c_call := _m.On("SRem", matchers...) + return &RedisClient_SRem{Call: c_call} } // SRem provides a mock function with given fields: _a0, _a1 diff --git a/pkg/controller/workflowstore/mocks/FlyteWorkflow.go b/pkg/controller/workflowstore/mocks/FlyteWorkflow.go index c3ca6f1b24..cc18f5bd96 100644 --- a/pkg/controller/workflowstore/mocks/FlyteWorkflow.go +++ b/pkg/controller/workflowstore/mocks/FlyteWorkflow.go @@ -25,13 +25,13 @@ func (_m FlyteWorkflow_Get) Return(_a0 *v1alpha1.FlyteWorkflow, _a1 error) *Flyt } func (_m *FlyteWorkflow) OnGet(ctx context.Context, namespace string, name string) *FlyteWorkflow_Get { - c := _m.On("Get", ctx, namespace, name) - return &FlyteWorkflow_Get{Call: c} + c_call := _m.On("Get", ctx, namespace, name) + return &FlyteWorkflow_Get{Call: c_call} } func (_m *FlyteWorkflow) OnGetMatch(matchers ...interface{}) *FlyteWorkflow_Get { - c := _m.On("Get", matchers...) - return &FlyteWorkflow_Get{Call: c} + c_call := _m.On("Get", matchers...) + return &FlyteWorkflow_Get{Call: c_call} } // Get provides a mock function with given fields: ctx, namespace, name @@ -66,13 +66,13 @@ func (_m FlyteWorkflow_Update) Return(newWF *v1alpha1.FlyteWorkflow, err error) } func (_m *FlyteWorkflow) OnUpdate(ctx context.Context, workflow *v1alpha1.FlyteWorkflow, priorityClass workflowstore.PriorityClass) *FlyteWorkflow_Update { - c := _m.On("Update", ctx, workflow, priorityClass) - return &FlyteWorkflow_Update{Call: c} + c_call := _m.On("Update", ctx, workflow, priorityClass) + return &FlyteWorkflow_Update{Call: c_call} } func (_m *FlyteWorkflow) OnUpdateMatch(matchers ...interface{}) *FlyteWorkflow_Update { - c := _m.On("Update", matchers...) - return &FlyteWorkflow_Update{Call: c} + c_call := _m.On("Update", matchers...) + return &FlyteWorkflow_Update{Call: c_call} } // Update provides a mock function with given fields: ctx, workflow, priorityClass @@ -107,13 +107,13 @@ func (_m FlyteWorkflow_UpdateStatus) Return(newWF *v1alpha1.FlyteWorkflow, err e } func (_m *FlyteWorkflow) OnUpdateStatus(ctx context.Context, workflow *v1alpha1.FlyteWorkflow, priorityClass workflowstore.PriorityClass) *FlyteWorkflow_UpdateStatus { - c := _m.On("UpdateStatus", ctx, workflow, priorityClass) - return &FlyteWorkflow_UpdateStatus{Call: c} + c_call := _m.On("UpdateStatus", ctx, workflow, priorityClass) + return &FlyteWorkflow_UpdateStatus{Call: c_call} } func (_m *FlyteWorkflow) OnUpdateStatusMatch(matchers ...interface{}) *FlyteWorkflow_UpdateStatus { - c := _m.On("UpdateStatus", matchers...) - return &FlyteWorkflow_UpdateStatus{Call: c} + c_call := _m.On("UpdateStatus", matchers...) + return &FlyteWorkflow_UpdateStatus{Call: c_call} } // UpdateStatus provides a mock function with given fields: ctx, workflow, priorityClass diff --git a/pkg/webhook/mocks/global_secret_provider.go b/pkg/webhook/mocks/global_secret_provider.go index af73764964..34c22c54d6 100644 --- a/pkg/webhook/mocks/global_secret_provider.go +++ b/pkg/webhook/mocks/global_secret_provider.go @@ -23,13 +23,13 @@ func (_m GlobalSecretProvider_GetForSecret) Return(_a0 string, _a1 error) *Globa } func (_m *GlobalSecretProvider) OnGetForSecret(ctx context.Context, secret *core.Secret) *GlobalSecretProvider_GetForSecret { - c := _m.On("GetForSecret", ctx, secret) - return &GlobalSecretProvider_GetForSecret{Call: c} + c_call := _m.On("GetForSecret", ctx, secret) + return &GlobalSecretProvider_GetForSecret{Call: c_call} } func (_m *GlobalSecretProvider) OnGetForSecretMatch(matchers ...interface{}) *GlobalSecretProvider_GetForSecret { - c := _m.On("GetForSecret", matchers...) - return &GlobalSecretProvider_GetForSecret{Call: c} + c_call := _m.On("GetForSecret", matchers...) + return &GlobalSecretProvider_GetForSecret{Call: c_call} } // GetForSecret provides a mock function with given fields: ctx, secret diff --git a/pkg/webhook/mocks/mutator.go b/pkg/webhook/mocks/mutator.go index f182f1715d..5376621f46 100644 --- a/pkg/webhook/mocks/mutator.go +++ b/pkg/webhook/mocks/mutator.go @@ -23,13 +23,13 @@ func (_m Mutator_ID) Return(_a0 string) *Mutator_ID { } func (_m *Mutator) OnID() *Mutator_ID { - c := _m.On("ID") - return &Mutator_ID{Call: c} + c_call := _m.On("ID") + return &Mutator_ID{Call: c_call} } func (_m *Mutator) OnIDMatch(matchers ...interface{}) *Mutator_ID { - c := _m.On("ID", matchers...) - return &Mutator_ID{Call: c} + c_call := _m.On("ID", matchers...) + return &Mutator_ID{Call: c_call} } // ID provides a mock function with given fields: @@ -55,13 +55,13 @@ func (_m Mutator_Mutate) Return(newP *v1.Pod, changed bool, err error) *Mutator_ } func (_m *Mutator) OnMutate(ctx context.Context, p *v1.Pod) *Mutator_Mutate { - c := _m.On("Mutate", ctx, p) - return &Mutator_Mutate{Call: c} + c_call := _m.On("Mutate", ctx, p) + return &Mutator_Mutate{Call: c_call} } func (_m *Mutator) OnMutateMatch(matchers ...interface{}) *Mutator_Mutate { - c := _m.On("Mutate", matchers...) - return &Mutator_Mutate{Call: c} + c_call := _m.On("Mutate", matchers...) + return &Mutator_Mutate{Call: c_call} } // Mutate provides a mock function with given fields: ctx, p diff --git a/pkg/webhook/mocks/secrets_injector.go b/pkg/webhook/mocks/secrets_injector.go index 22b8ba6ad5..0ce16c6881 100644 --- a/pkg/webhook/mocks/secrets_injector.go +++ b/pkg/webhook/mocks/secrets_injector.go @@ -28,13 +28,13 @@ func (_m SecretsInjector_Inject) Return(newP *v1.Pod, injected bool, err error) } func (_m *SecretsInjector) OnInject(ctx context.Context, secrets *core.Secret, p *v1.Pod) *SecretsInjector_Inject { - c := _m.On("Inject", ctx, secrets, p) - return &SecretsInjector_Inject{Call: c} + c_call := _m.On("Inject", ctx, secrets, p) + return &SecretsInjector_Inject{Call: c_call} } func (_m *SecretsInjector) OnInjectMatch(matchers ...interface{}) *SecretsInjector_Inject { - c := _m.On("Inject", matchers...) - return &SecretsInjector_Inject{Call: c} + c_call := _m.On("Inject", matchers...) + return &SecretsInjector_Inject{Call: c_call} } // Inject provides a mock function with given fields: ctx, secrets, p @@ -76,13 +76,13 @@ func (_m SecretsInjector_Type) Return(_a0 config.SecretManagerType) *SecretsInje } func (_m *SecretsInjector) OnType() *SecretsInjector_Type { - c := _m.On("Type") - return &SecretsInjector_Type{Call: c} + c_call := _m.On("Type") + return &SecretsInjector_Type{Call: c_call} } func (_m *SecretsInjector) OnTypeMatch(matchers ...interface{}) *SecretsInjector_Type { - c := _m.On("Type", matchers...) - return &SecretsInjector_Type{Call: c} + c_call := _m.On("Type", matchers...) + return &SecretsInjector_Type{Call: c_call} } // Type provides a mock function with given fields: