summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorCodeLingo Bot <hello@codelingo.io>2018-12-12 02:30:35 +1300
committerKurt Jung <kurt.w.jung@gmail.com>2018-12-11 08:30:35 -0500
commit95702eead4d148c6111f5a3ef7ef7cbc0c906b49 (patch)
treee5e45521c4ee68d36cbad02aaa69153660fd8797 /contrib
parentfe48001d4389ad79f7402b3c654c03409babac29 (diff)
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
Diffstat (limited to 'contrib')
-rw-r--r--contrib/barcode/barcode_test.go6
1 files changed, 3 insertions, 3 deletions
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()