Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: regexp output #43500

Closed
sylr opened this issue Jan 4, 2021 · 1 comment
Closed

test: regexp output #43500

sylr opened this issue Jan 4, 2021 · 1 comment

Comments

@sylr
Copy link

sylr commented Jan 4, 2021

I'd like to write an example for a cryptographic function which outputs always vary given the same inputs.

	// Output:
	// database_login: service_1
	// database_host: db.company.com:5432
	// database_password: !crypto/age |
	//   -----BEGIN AGE ENCRYPTED FILE-----
	//   YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNjcnlwdCBocU5HU1NlOVRRaUhHN3Zv
	//   eEJ5Vi9RIDE4ClR2U0ZaUURUdGE4NktWNmFEbW80WXpiQ2tDNnNxM0xxK01oME1H
	//   SDNwbUEKLS0tIC9kbUhWZFpyMDJHenRiY0dKSzdTaTBwTk8vd1Evd1lnR1pkdFpR
	//   anZCWVkKNnf7TJe1aauOOH3vyaENhoOTZGZjDRacxfmkXtl/beRv+YAVFLSpsnCw
	//   CDVeZmWX3Rw=
	//   -----END AGE ENCRYPTED FILE-----

We already have Unordered output so I was thinking about adding Regexp output, e.g.:

	// Regexp output:
	// database_login: service_1
	// database_host: db.company.com:5432
	// database_password: !crypto/age |
	//   -----BEGIN AGE ENCRYPTED FILE-----
	//   .*
	//   -----END AGE ENCRYPTED FILE-----

Regards.

@ALTree
Copy link
Member

ALTree commented Jan 4, 2021

This was already proposed and declined in #18831, you can read the comments on that thread for the reasoning behind the rejection.

Closing here as a dup of #18831.

@ALTree ALTree closed this as completed Jan 4, 2021
@golang golang locked and limited conversation to collaborators Jan 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants