From 95702eead4d148c6111f5a3ef7ef7cbc0c906b49 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Wed, 12 Dec 2018 02:30:35 +1300 Subject: Fix comments according to best practices by effective go (#217) * Fix comments according to best practices by effective go * Update font.go * Update fpdf_test.go * Update fpdf.go * Update example.go * Update util.go --- contrib/barcode/barcode_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/barcode') diff --git a/contrib/barcode/barcode_test.go b/contrib/barcode/barcode_test.go index 0a40a09..2b402a3 100644 --- a/contrib/barcode/barcode_test.go +++ b/contrib/barcode/barcode_test.go @@ -157,13 +157,13 @@ func ExampleRegisterPdf417() { // Successfully generated ../../pdf/contrib_barcode_RegisterPdf417.pdf } -// This test ensures that no panic arises when an invalid barcode is registered. +// TestRegisterCode128 ensures that no panic arises when an invalid barcode is registered. func TestRegisterCode128(t *testing.T) { pdf := createPdf() barcode.RegisterCode128(pdf, "Invalid character: é") } -// Shows that the barcode may be scaled or not by providing optional heights and widths. +// TestBarcodeUnscalable shows that the barcode may be scaled or not by providing optional heights and widths. func TestBarcodeUnscalable(t *testing.T) { pdf := createPdf() @@ -182,7 +182,7 @@ func TestBarcodeUnscalable(t *testing.T) { // Successfully generated ../../pdf/contrib_barcode_Barcode.pdf } -// Shows that the width and height returned by the function match that of the barcode +// TestGetUnscaledBarcodeDimensions shows that the width and height returned by the function match that of the barcode func TestGetUnscaledBarcodeDimensions(t *testing.T) { pdf := createPdf() -- cgit v1.2.1-24-ge1ad