Commit a461eab3 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #40883 from apprenda/kubeadm_util_template_has_unit_tests

Automatic merge from submit-queue (batch tested with PRs 39681, 39321, 41018, 40883) kubeadm: app/util/template.go has unit tests **What this PR does / why we need it**: There was a TODO tag about adding unit tests, but unit tests have been added and the coverage for that file is ~90%. Tag should be removed. Adding unit tests is a WIP from #34136 **Special notes for your reviewer**: /cc @luxas @pires **Release note**: ```release-note NONE ```
parents 816f90d8 318e27b6
...@@ -22,7 +22,6 @@ import ( ...@@ -22,7 +22,6 @@ import (
"text/template" "text/template"
) )
// TODO: Should be unit-tested
func ParseTemplate(strtmpl string, obj interface{}) ([]byte, error) { func ParseTemplate(strtmpl string, obj interface{}) ([]byte, error) {
var buf bytes.Buffer var buf bytes.Buffer
tmpl, err := template.New("template").Parse(strtmpl) tmpl, err := template.New("template").Parse(strtmpl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment