pkg.tk-software.de/gotice@v0.4.1-0.20240224130243-6adec687b106/version_test.go (about)

     1  // Copyright 2023-2024 Tobias Koch. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  import "testing"
     8  
     9  func TestVersionCommand(t *testing.T) {
    10  	args := []string{
    11  		"param0",
    12  		"version",
    13  	}
    14  
    15  	if err := exec(args); err != nil {
    16  		t.Errorf("Expected no error, got %s", err)
    17  	}
    18  }