Skip to content

Use builder pattern to avoid more number of arguments to the function in tests #1232

@Madhu-1

Description

@Madhu-1

What happened:

Currently few test helper functions are having more number of input parameters, having more input parameters in a function always brings in the readability and maintenance burden, instead of this we can use builder pattern for better readability and the maintenance, once such example is here #1231 (comment)

What you expected to happen:

How to reproduce it:

Anything else we need to know?:

Environment:

  • Driver version:
  • Kubernetes version (use kubectl version):
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

Metadata

Metadata

Assignees

Labels

lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions