Mercurial > hg > ltpda
comparison testing/utp_1.1/utp_fcns/utpGetUsername.m @ 44:409a22968d5e default
Add unit tests
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Tue, 06 Dec 2011 18:42:11 +0100 |
parents | |
children | 9d5c88356247 |
comparison
equal
deleted
inserted
replaced
43:bc767aaa99a8 | 44:409a22968d5e |
---|---|
1 % UTPGETUSERNAME returns the username for the repository tests. | |
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
3 % | |
4 % DESCRIPTION: UTPGETUSERNAME returns the username for the repository | |
5 % tests. | |
6 % | |
7 % CALL: username = utpGetUsername() | |
8 % | |
9 % VERSION: $Id: utpGetUsername.m,v 1.3 2010/07/14 12:38:49 hewitson Exp $ | |
10 % | |
11 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
12 | |
13 function username = utpGetUsername() | |
14 | |
15 username = getappdata(0, 'LTPDARepoUsername'); | |
16 if isempty(username) | |
17 username = 'tester'; | |
18 end | |
19 | |
20 end |