Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for have (0.2 sec)

  1. cmd/update_test.go

    // but WITHOUT ANY WARRANTY; without even the implied warranty of
    // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"encoding/hex"
    	"fmt"
    	"net/http"
    	"net/http/httptest"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Mar 09 03:07:08 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. tests/update_test.go

    func TestSaveWithPrimaryValue(t *testing.T) {
    	lang := Language{Code: "save", Name: "save"}
    	if result := DB.Save(&lang); result.RowsAffected != 1 {
    		t.Errorf("should create language, rows affected: %v", result.RowsAffected)
    	}
    
    	var result Language
    	DB.First(&result, "code = ?", "save")
    	AssertEqual(t, result, lang)
    
    	lang.Name = "save name2"
    	if result := DB.Save(&lang); result.RowsAffected != 1 {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Dec 04 03:50:58 GMT 2023
    - 30.3K bytes
    - Viewed (0)
Back to top